diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2022-11-20 14:23:38 +0100 |
---|---|---|
committer | Marge Bot <marge-bot@gnome.org> | 2022-12-01 20:10:52 +0000 |
commit | 9135931385fb388381e15217f052eabdddc60f57 (patch) | |
tree | dbc04e3cf3078adefa8f922a434db34fb23e6297 | |
parent | 62d91bb5fd518c452fec5ed355fb102445366601 (diff) | |
download | mutter-9135931385fb388381e15217f052eabdddc60f57.tar.gz |
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>
-rw-r--r-- | src/tests/stacking/restore-size.metatest | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tests/stacking/restore-size.metatest b/src/tests/stacking/restore-size.metatest index 58941b017..198cc7a55 100644 --- a/src/tests/stacking/restore-size.metatest +++ b/src/tests/stacking/restore-size.metatest @@ -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 |