From e68326405115d9f5c39d9310584991ab00c40e0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20=C3=85dahl?= Date: Fri, 25 Aug 2023 18:45:56 +0200 Subject: [PATCH] tests: Add metatests for cloned windows and suspend state Tests https://gitlab.gnome.org/GNOME/mutter/-/issues/2984. Part-of: --- src/tests/meson.build | 2 ++ src/tests/stacking/cloned-windows.metatest | 12 ++++++++++++ src/tests/stacking/suspend-state-timeout.metatest | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 src/tests/stacking/cloned-windows.metatest create mode 100644 src/tests/stacking/suspend-state-timeout.metatest diff --git a/src/tests/meson.build b/src/tests/meson.build index 64cb3046e..7e97119df 100644 --- a/src/tests/meson.build +++ b/src/tests/meson.build @@ -697,6 +697,8 @@ stacking_tests = [ 'click-to-focus-and-raise', 'workspace-only-on-primary-focus', 'overview-focus', + 'suspend-state-timeout', + 'cloned-windows', ] foreach stacking_test: stacking_tests diff --git a/src/tests/stacking/cloned-windows.metatest b/src/tests/stacking/cloned-windows.metatest new file mode 100644 index 000000000..01e533ad1 --- /dev/null +++ b/src/tests/stacking/cloned-windows.metatest @@ -0,0 +1,12 @@ +new_client 1 wayland + +create 1/1 +show 1/1 +wait +clone 1/1 +minimize 1/1 +wait +hide 1/1 +wait_for_effects 1/1 +declone 1/1 +wait diff --git a/src/tests/stacking/suspend-state-timeout.metatest b/src/tests/stacking/suspend-state-timeout.metatest new file mode 100644 index 000000000..316b7f6e1 --- /dev/null +++ b/src/tests/stacking/suspend-state-timeout.metatest @@ -0,0 +1,10 @@ +new_client 1 wayland + +create 1/1 +show 1/1 +wait +hide 1/1 + +wait_for_effects 1/1 +sleep suspend_timeout +sleep 1000