From 5ab547fbfda58df8a6ce54e0139c81112f6a4c52 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 30 Dec 2018 02:23:57 -0500 Subject: [PATCH] tests: Test the awesome.modifiers --- tests/test-keyboard-layout-changes.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/test-keyboard-layout-changes.lua b/tests/test-keyboard-layout-changes.lua index 2693a877c..ebe6adc6f 100644 --- a/tests/test-keyboard-layout-changes.lua +++ b/tests/test-keyboard-layout-changes.lua @@ -9,6 +9,10 @@ local done local timer = GLib.Timer() local steps = { + function() + assert(awesome._modifiers.Control) + return true + end, function(count) if count == 1 then -- POSIX allows us to use awk @@ -22,7 +26,11 @@ local steps = { -- Apply some limit on how long awesome may need to process 'things' return timer:elapsed() < 5 end - end + end, + function() + assert(awesome._modifiers.Control) + return true + end, } runner.run_steps(steps)