tests: Ensure that restore-size resizes the client before maximize/unmaximize

The test does simply "wait" which apparently is not enough to ensure the
client window did resize to the expected dimensions. Use "wait_reconfigure"
and assert that the size after resize is the expected, before going further
at testing its behavior after maximize/unmaximize; it might end up with the
unexpected size after the whole operation.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2175>
This commit is contained in:
Carlos Garnacho 2022-11-20 14:23:38 +01:00 committed by Marge Bot
parent 62d91bb5fd
commit 9135931385

View File

@ -18,7 +18,8 @@ wait
assert_size x/1 500 400
resize x/1 300 200
wait
wait_reconfigure
assert_size x/1 300 200
maximize x/1
wait_reconfigure
unmaximize x/1