mirror of
https://github.com/brl/mutter.git
synced 2024-11-27 02:20:43 -05:00
tests/restore-size: Also test that untiling restores correctly
Tiling, then untiling should restore to the size prior to tiling. Tiling, maximizing, then unmaximizing should also restore to the size prior to tiling. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1171
This commit is contained in:
parent
4b4cf96de1
commit
f84ec95d2f
@ -1,4 +1,5 @@
|
||||
# Check that X11 clients restore to their right size after unmaximize
|
||||
# or untile
|
||||
|
||||
new_client x x11
|
||||
create x/1 csd
|
||||
@ -24,7 +25,28 @@ wait
|
||||
|
||||
assert_size x/1 300 200
|
||||
|
||||
tile x/1 right
|
||||
wait
|
||||
assert_size x/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
|
||||
|
||||
untile x/1
|
||||
wait
|
||||
assert_size x/1 300 200
|
||||
|
||||
tile x/1 left
|
||||
wait
|
||||
assert_size x/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
|
||||
|
||||
maximize x/1
|
||||
wait_reconfigure
|
||||
assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
|
||||
|
||||
unmaximize x/1
|
||||
wait_reconfigure
|
||||
assert_size x/1 300 200
|
||||
|
||||
# Check that Wayland clients restore to their right size after unmaximize
|
||||
# or untile
|
||||
|
||||
new_client w wayland
|
||||
create w/1 csd
|
||||
@ -49,3 +71,23 @@ unmaximize w/1
|
||||
wait_reconfigure
|
||||
|
||||
assert_size w/1 300 200
|
||||
|
||||
tile w/1 right
|
||||
wait
|
||||
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
|
||||
|
||||
untile w/1
|
||||
wait
|
||||
assert_size w/1 300 200
|
||||
|
||||
tile w/1 left
|
||||
wait
|
||||
assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
|
||||
|
||||
maximize w/1
|
||||
wait_reconfigure
|
||||
assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
|
||||
|
||||
unmaximize w/1
|
||||
wait_reconfigure
|
||||
assert_size w/1 300 200
|
||||
|
Loading…
Reference in New Issue
Block a user