[mutter/gnome-3-30] tests: Verify focused window in closed-transient tests
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-30] tests: Verify focused window in closed-transient tests
- Date: Mon, 24 Jun 2019 15:13:46 +0000 (UTC)
commit 7927415e5b1f3cb2d9206e112d2dfdf7c31df79f
Author: Marco Trevisan (Treviño) <mail 3v1n0 net>
Date: Tue Nov 13 08:45:56 2018 +0100
tests: Verify focused window in closed-transient tests
Ensure that we have a focused window when closing transient windows with
no-focus or no-take-focus atoms
https://gitlab.gnome.org/GNOME/mutter/merge_requests/307
(cherry picked from commit fcb408ad5d8d7fec3e6a7bdaa92e5ef06b55c2c6)
.../closed-transient-no-input-no-take-focus-parent.metatest | 2 ++
...closed-transient-no-input-no-take-focus-parents.metatest | 13 ++++++++++---
2 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/tests/stacking/closed-transient-no-input-no-take-focus-parent.metatest
b/src/tests/stacking/closed-transient-no-input-no-take-focus-parent.metatest
index 4249c32b9..0c0649c07 100644
--- a/src/tests/stacking/closed-transient-no-input-no-take-focus-parent.metatest
+++ b/src/tests/stacking/closed-transient-no-input-no-take-focus-parent.metatest
@@ -13,9 +13,11 @@ set_parent 1/3 2
show 1/3
wait
+assert_focused 1/3
assert_stacking 1/1 1/2 1/3
destroy 1/3
wait
+assert_focused 1/1
assert_stacking 1/1 1/2
diff --git a/src/tests/stacking/closed-transient-no-input-no-take-focus-parents.metatest
b/src/tests/stacking/closed-transient-no-input-no-take-focus-parents.metatest
index a61c64055..6556803e1 100644
--- a/src/tests/stacking/closed-transient-no-input-no-take-focus-parents.metatest
+++ b/src/tests/stacking/closed-transient-no-input-no-take-focus-parents.metatest
@@ -1,3 +1,8 @@
+new_client 2 x11
+create 2/1
+show 2/1
+wait
+
new_client 1 x11
create 1/1
accept_focus 1/1 false
@@ -15,9 +20,11 @@ set_parent 1/3 2
show 1/3
wait
-assert_stacking 1/1 1/2 1/3
+assert_focused 1/3
+assert_stacking 2/1 1/1 1/2 1/3
destroy 1/3
-wait
-assert_stacking 1/1 1/2
+wait
+assert_stacking 1/1 1/2 2/1
+assert_focused 2/1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]