|
|
776610 |
From 0a09a3c9063230d9a3f170371f93d2d2280d8e06 Mon Sep 17 00:00:00 2001
|
|
|
776610 |
From: =?UTF-8?q?Florian=20M=C3=BCllner?= <fmuellner@gnome.org>
|
|
|
776610 |
Date: Thu, 19 Jul 2018 11:47:12 +0200
|
|
|
776610 |
Subject: [PATCH 3/3] tests: Add "closed-transient" test
|
|
|
776610 |
|
|
|
776610 |
When a transient window is destroyed, the expected behavior is that
|
|
|
776610 |
focus is passed to the ancestor if possible. This was broken for
|
|
|
776610 |
quite a while until the previous commit, so add a test case to make
|
|
|
776610 |
sure it doesn't happen again.
|
|
|
776610 |
|
|
|
776610 |
https://gitlab.gnome.org/GNOME/mutter/issues/15
|
|
|
776610 |
|
|
|
776610 |
(cherry-picked from commit 137f22236cba5f2583d8db3d957e3926d1f7f668)
|
|
|
776610 |
---
|
|
|
776610 |
src/Makefile-tests.am | 1 +
|
|
|
776610 |
src/tests/stacking/closed-transient.metatest | 19 +++++++++++++++++++
|
|
|
776610 |
2 files changed, 20 insertions(+)
|
|
|
776610 |
create mode 100644 src/tests/stacking/closed-transient.metatest
|
|
|
776610 |
|
|
|
776610 |
diff --git a/src/Makefile-tests.am b/src/Makefile-tests.am
|
|
|
776610 |
index 72706e2bd..4be832cc9 100644
|
|
|
776610 |
--- a/src/Makefile-tests.am
|
|
|
776610 |
+++ b/src/Makefile-tests.am
|
|
|
776610 |
@@ -14,6 +14,7 @@ stackingdir = $(pkgdatadir)/tests/stacking
|
|
|
776610 |
dist_stacking_DATA = \
|
|
|
776610 |
tests/stacking/basic-x11.metatest \
|
|
|
776610 |
tests/stacking/basic-wayland.metatest \
|
|
|
776610 |
+ tests/stacking/closed-transient.metatest \
|
|
|
776610 |
tests/stacking/minimized.metatest \
|
|
|
776610 |
tests/stacking/mixed-windows.metatest \
|
|
|
776610 |
tests/stacking/set-parent.metatest \
|
|
|
776610 |
diff --git a/src/tests/stacking/closed-transient.metatest b/src/tests/stacking/closed-transient.metatest
|
|
|
776610 |
new file mode 100644
|
|
|
776610 |
index 000000000..5ca95ba0f
|
|
|
776610 |
--- /dev/null
|
|
|
776610 |
+++ b/src/tests/stacking/closed-transient.metatest
|
|
|
776610 |
@@ -0,0 +1,19 @@
|
|
|
776610 |
+new_client 1 wayland
|
|
|
776610 |
+create 1/1
|
|
|
776610 |
+show 1/1
|
|
|
776610 |
+
|
|
|
776610 |
+new_client 2 wayland
|
|
|
776610 |
+create 2/1
|
|
|
776610 |
+show 2/1
|
|
|
776610 |
+
|
|
|
776610 |
+create 1/2
|
|
|
776610 |
+show 1/2
|
|
|
776610 |
+set_parent 1/2 1
|
|
|
776610 |
+
|
|
|
776610 |
+wait
|
|
|
776610 |
+assert_stacking 1/1 2/1 1/2
|
|
|
776610 |
+
|
|
|
776610 |
+destroy 1/2
|
|
|
776610 |
+
|
|
|
776610 |
+wait
|
|
|
776610 |
+assert_stacking 2/1 1/1
|
|
|
776610 |
--
|
|
|
776610 |
2.19.0
|
|
|
776610 |
|