From 82470cd40da4e2caae6543af986005ee32575e2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Mon, 6 Apr 2020 12:12:02 +0200 Subject: [PATCH] tests/stacking: Add test checking the initial size https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1171 --- src/tests/meson.build | 1 + src/tests/stacking/default-size.metatest | 36 ++++++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/tests/stacking/default-size.metatest diff --git a/src/tests/meson.build b/src/tests/meson.build index 928f48d61..66b7f6222 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -145,6 +145,7 @@ stacking_tests = [ 'unmaximize-new-size', 'fullscreen-maximize', 'restore-position', + 'default-size', ] foreach stacking_test: stacking_tests diff --git a/src/tests/stacking/default-size.metatest b/src/tests/stacking/default-size.metatest new file mode 100644 index 000000000..d1c692959 --- /dev/null +++ b/src/tests/stacking/default-size.metatest @@ -0,0 +1,36 @@ +new_client x x11 +create x/1 csd + +resize x/1 300 400 +show x/1 +wait + +assert_size x/1 300 400 + +resize x/1 200 300 +wait_reconfigure +assert_size x/1 200 300 + +hide x/1 +show x/1 +wait +assert_size x/1 200 300 + + +new_client w wayland +create w/1 csd + +resize w/1 300 400 +show w/1 +wait + +assert_size w/1 300 400 + +resize w/1 200 300 +wait_reconfigure +assert_size w/1 200 300 + +hide w/1 +show w/1 +wait_reconfigure +assert_size w/1 200 300