tests/stacking: Do not wait after move action

Moving a window is a compositor action and happens immediately. Waiting
here is pointless. Make sure instead that the action happens immediately
by asserting the position.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3842>
This commit is contained in:
Sebastian Wick 2024-06-25 19:43:43 +02:00 committed by Bilal Elmoussaoui
parent 4e82896533
commit 6ee7c2da7c
6 changed files with 17 additions and 11 deletions

View File

@ -16,8 +16,8 @@ wait_reconfigure w/1 w/2
move w/1 0 0
move w/2 100 0
wait_reconfigure w/1 w/2
assert_position w/1 0 0
assert_position w/2 100 0
assert_stacking w/1 w/2
assert_focused w/2

View File

@ -21,8 +21,8 @@ wait_reconfigure w/0 w/1
move w/0 0 0
move w/1 100 0
wait
assert_position w/0 0 0
assert_position w/1 100 0
assert_stacking w/0 w/1
assert_focused w/1
@ -32,6 +32,8 @@ assert_size w/0 100 100
assert_position w/1 100 0
assert_size w/1 100 100
wait
move_cursor_to 150 50
assert_stacking w/0 w/1

View File

@ -24,8 +24,9 @@ wait_reconfigure w/0 w/1 w/2
move w/0 0 0
move w/1 100 0
move w/2 200 0
wait
assert_position w/0 0 0
assert_position w/1 100 0
assert_position w/2 200 0
assert_stacking w/0 w/1 w/2
assert_focused w/2
@ -37,6 +38,8 @@ assert_size w/1 100 100
assert_position w/2 200 0
assert_size w/2 100 100
wait
move_cursor_to 50 50
sleep 50

View File

@ -19,8 +19,8 @@ wait_reconfigure w/0 w/1
move w/0 0 0
move w/1 100 0
wait
assert_position w/0 0 0
assert_position w/1 100 0
assert_stacking w/0 w/1
assert_focused w/1
@ -30,6 +30,8 @@ assert_size w/0 100 100
assert_position w/1 100 0
assert_size w/1 100 100
wait
move_cursor_to 50 50
assert_stacking w/0 w/1

View File

@ -101,7 +101,6 @@ assert_position w/1 MONITOR_WIDTH/4 MONITOR_HEIGHT/4
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT/2
move w/1 0 0
wait_reconfigure w/1
assert_position w/1 MONITOR_WIDTH/4 MONITOR_HEIGHT/4
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT/2

View File

@ -22,8 +22,8 @@ wait_reconfigure w/1 w/2
# make sure the windows are on the secondary monitor
move w/1 800 0
move w/2 900 0
wait_reconfigure w/1 w/2
assert_position w/1 800 0
assert_position w/2 900 0
assert_stacking w/1 w/2
assert_focused w/2