tests: Test the awesome.modifiers
This commit is contained in:
parent
44c5ca41d9
commit
5ab547fbfd
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue