mutter/src/tests/stacking/closed-transient.metatest
Florian Müllner 0a09a3c906 tests: Add "closed-transient" test
When a transient window is destroyed, the expected behavior is that
focus is passed to the ancestor if possible. This was broken for
quite a while until the previous commit, so add a test case to make
sure it doesn't happen again.

https://gitlab.gnome.org/GNOME/mutter/issues/15

(cherry-picked from commit 137f22236cba5f2583d8db3d957e3926d1f7f668)
2018-07-30 20:29:03 +02:00

20 lines
198 B
Plaintext

new_client 1 wayland
create 1/1
show 1/1
new_client 2 wayland
create 2/1
show 2/1
create 1/2
show 1/2
set_parent 1/2 1
wait
assert_stacking 1/1 2/1 1/2
destroy 1/2
wait
assert_stacking 2/1 1/1