[mutter] tests/restore-size: Also test that untiling restores correctly
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/restore-size: Also test that untiling restores correctly
- Date: Thu, 7 May 2020 23:32:14 +0000 (UTC)
commit 989e2ccc4693230968f5c302478d1788863bd853
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Apr 2 19:09:44 2020 +0200
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
src/tests/stacking/restore-size.metatest | 42 ++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
---
diff --git a/src/tests/stacking/restore-size.metatest b/src/tests/stacking/restore-size.metatest
index 329c582f2..58941b017 100644
--- a/src/tests/stacking/restore-size.metatest
+++ b/src/tests/stacking/restore-size.metatest
@@ -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
@@ -25,7 +26,28 @@ wait_reconfigure
assert_size x/1 300 200
+tile x/1 right
+wait_reconfigure
+assert_size x/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
+
+untile x/1
+wait_reconfigure
+assert_size x/1 300 200
+
+tile x/1 left
+wait_reconfigure
+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
@@ -51,3 +73,23 @@ unmaximize w/1
wait_reconfigure
assert_size w/1 300 200
+
+tile w/1 right
+wait_reconfigure
+assert_size w/1 MONITOR_WIDTH/2 MONITOR_HEIGHT
+
+untile w/1
+wait_reconfigure
+assert_size w/1 300 200
+
+tile w/1 left
+wait_reconfigure
+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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]