Update tests
This commit is contained in:
parent
cdee6b8e48
commit
41c46af7f7
|
@ -282,12 +282,12 @@ local steps = {
|
||||||
if count == 2 then
|
if count == 2 then
|
||||||
assert(hotkeys_popup ~= nil)
|
assert(hotkeys_popup ~= nil)
|
||||||
assert(hotkeys_popup.visible)
|
assert(hotkeys_popup.visible)
|
||||||
-- Should disappear on anykey
|
-- Should disappear on escape (awful.prompt)
|
||||||
root.fake_input("key_press", "Super_L")
|
root.fake_input("key_press", "Escape")
|
||||||
|
|
||||||
elseif count == 3 then
|
elseif count == 3 then
|
||||||
assert(not hotkeys_popup.visible)
|
assert(not hotkeys_popup.visible)
|
||||||
root.fake_input("key_release", "Super_L")
|
root.fake_input("key_release", "Escape")
|
||||||
test_context.hotkeys01_clients_before = #client.get()
|
test_context.hotkeys01_clients_before = #client.get()
|
||||||
-- imitate fake client with name "vim"
|
-- imitate fake client with name "vim"
|
||||||
-- so hotkeys widget will offer vim hotkeys:
|
-- so hotkeys widget will offer vim hotkeys:
|
||||||
|
@ -314,11 +314,11 @@ local steps = {
|
||||||
assert(visible_hotkeys_widget ~= nil)
|
assert(visible_hotkeys_widget ~= nil)
|
||||||
assert(visible_hotkeys_widget.current_page == 2)
|
assert(visible_hotkeys_widget.current_page == 2)
|
||||||
root.fake_input("key_release", "Next")
|
root.fake_input("key_release", "Next")
|
||||||
-- Should disappear on anykey
|
-- Should disappear on escape (awful.prompt)
|
||||||
root.fake_input("key_press", "Super_L")
|
root.fake_input("key_press", "Escape")
|
||||||
elseif (count - test_context.hotkeys01_count_vim) == 3 then
|
elseif (count - test_context.hotkeys01_count_vim) == 3 then
|
||||||
assert(not visible_hotkeys_widget)
|
assert(not visible_hotkeys_widget)
|
||||||
root.fake_input("key_release", "Super_L")
|
root.fake_input("key_release", "Escape")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue