tests: use open_window to avoid motion notifies which in turn trigger endless loops

Using 'open' will not create an X11 window (while open_window does), so we will
get spurious motion notify events when switching focus, leading to endless loops.
This commit is contained in:
Michael Stapelberg 2012-01-09 19:15:59 +00:00
parent df9b338175
commit a4a59a797f
1 changed files with 4 additions and 4 deletions

View File

@ -12,12 +12,12 @@ use i3test;
is(focused_ws, '1', 'starting on workspace 1'); is(focused_ws, '1', 'starting on workspace 1');
# ensure workspace 1 stays open # ensure workspace 1 stays open
cmd 'open'; open_window;
cmd 'focus output right'; cmd 'focus output right';
is(focused_ws, '2', 'workspace 2 on second output'); is(focused_ws, '2', 'workspace 2 on second output');
# ensure workspace 2 stays open # ensure workspace 2 stays open
cmd 'open'; open_window;
cmd 'focus output right'; cmd 'focus output right';
is(focused_ws, '1', 'back on workspace 1'); is(focused_ws, '1', 'back on workspace 1');
@ -25,8 +25,8 @@ is(focused_ws, '1', 'back on workspace 1');
# We dont use fresh_workspace with named workspaces here since they come last # We dont use fresh_workspace with named workspaces here since they come last
# when using 'workspace next'. # when using 'workspace next'.
cmd 'workspace 5'; cmd 'workspace 5';
# ensure workspace $tmp stays open # ensure workspace 5 stays open
cmd 'open'; open_window;
################################################################################ ################################################################################
# Use workspace next and verify the correct order. # Use workspace next and verify the correct order.