Add a test for stacking vs. minimization

Test that the guard window is in the right place.

https://bugzilla.gnome.org/show_bug.cgi?id=737233
This commit is contained in:
Owen W. Taylor 2014-09-24 16:16:03 -04:00
parent 371560c2b6
commit cdfb301200
2 changed files with 19 additions and 0 deletions

View File

@ -7,6 +7,7 @@ stackingdir = $(pkgdatadir)/tests/stacking
dist_stacking_DATA = \
tests/stacking/basic-x11.metatest \
tests/stacking/basic-wayland.metatest \
tests/stacking/minimized.metatest \
tests/stacking/mixed-windows.metatest \
tests/stacking/override-redirect.metatest

View File

@ -0,0 +1,18 @@
new_client 1 x11
create 1/1
show 1/1
create 1/2
show 1/2
wait
assert_stacking 1/1 1/2
minimize 1/2
wait
assert_stacking 1/2 | 1/1
# unminimize doesn't work for GTK+ currently, because GTK+ expects
# to be able to de-iconify with MapWindow, but the window is already
# mapped.
activate 1/2
wait
assert_stacking 1/1 1/2