[mutter/gtk3-ci: 11/18] tests/stacking: Test some maximize fullscreen interaction
- From: Jonas Ådahl <jadahl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gtk3-ci: 11/18] tests/stacking: Test some maximize fullscreen interaction
- Date: Wed, 15 Apr 2020 14:00:34 +0000 (UTC)
commit 443dd146e1ed45cbda64bad33960a3cc2304255d
Author: Jonas Ådahl <jadahl gmail com>
Date: Thu Apr 2 18:36:06 2020 +0200
tests/stacking: Test some maximize fullscreen interaction
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1171
src/tests/stacking/fullscreen-maximize.metatest | 73 +++++++++++++++++++++++++
1 file changed, 73 insertions(+)
---
diff --git a/src/tests/stacking/fullscreen-maximize.metatest b/src/tests/stacking/fullscreen-maximize.metatest
new file mode 100644
index 000000000..239e5e002
--- /dev/null
+++ b/src/tests/stacking/fullscreen-maximize.metatest
@@ -0,0 +1,73 @@
+# Tests that the following works, both on Wayland and X11
+# 1. Create a window with a known size
+# 2. Maxmize window results in maximized size
+# 3. Fullscreen window results in fullscreen size
+# 4. Unfullscreen window results in maximized size
+# 5. Unmaximize window results in original size
+# 6. Toggling fullscreen ends up with original size
+
+new_client w wayland
+create w/1 csd
+
+resize w/1 500 400
+show w/1
+wait
+
+assert_size w/1 500 400
+
+maximize w/1
+wait_reconfigure
+assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+fullscreen w/1
+wait_reconfigure
+assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unfullscreen w/1
+wait_reconfigure
+assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unmaximize w/1
+wait_reconfigure
+assert_size w/1 500 400
+
+fullscreen w/1
+wait_reconfigure
+assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unfullscreen w/1
+wait_reconfigure
+assert_size w/1 500 400
+
+new_client x x11
+create x/1 csd
+
+resize x/1 500 400
+show x/1
+wait
+
+assert_size x/1 500 400
+
+maximize x/1
+wait_reconfigure
+assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+fullscreen x/1
+wait_reconfigure
+assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unfullscreen x/1
+wait_reconfigure
+assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unmaximize x/1
+wait_reconfigure
+assert_size x/1 500 400
+
+fullscreen x/1
+wait_reconfigure
+assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+unfullscreen x/1
+wait_reconfigure
+assert_size x/1 500 400
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]