tests: Test the awesome.modifiers

This commit is contained in:
Emmanuel Lepage Vallee 2018-12-30 02:23:57 -05:00
parent 44c5ca41d9
commit 5ab547fbfd
1 changed files with 9 additions and 1 deletions

View File

@ -9,6 +9,10 @@ local done
local timer = GLib.Timer() local timer = GLib.Timer()
local steps = { local steps = {
function()
assert(awesome._modifiers.Control)
return true
end,
function(count) function(count)
if count == 1 then if count == 1 then
-- POSIX allows us to use awk -- POSIX allows us to use awk
@ -22,7 +26,11 @@ local steps = {
-- Apply some limit on how long awesome may need to process 'things' -- Apply some limit on how long awesome may need to process 'things'
return timer:elapsed() < 5 return timer:elapsed() < 5
end end
end end,
function()
assert(awesome._modifiers.Control)
return true
end,
} }
runner.run_steps(steps) runner.run_steps(steps)