[mutter/wip/3v1n0/run-tests-in-ci: 8/14] tests: Verify focused window in closed-transient tests



commit 08f920606eaf83ace544032a75e701b0b03d7d21
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date:   Tue Nov 13 01:45:56 2018 -0600

    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

 .../closed-transient-no-input-no-take-focus-parent.metatest   |  2 ++
 .../closed-transient-no-input-no-take-focus-parents.metatest  | 11 +++++++++--
 2 files changed, 11 insertions(+), 2 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 f0b4d6ccf..9a87209ed 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
@@ -15,9 +15,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 25bcc3c18..21c17edaf 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
@@ -17,9 +22,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
+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]