[mutter] tests/stacking: Add test for initially fixed size windows



commit 80caf124614e3697ed3a650f021488a90f64627d
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Fri Jul 2 10:14:48 2021 +0200

    tests/stacking: Add test for initially fixed size windows
    
    E.g. map a window maximized or fullscreen.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1912>

 src/tests/meson.build                      |  1 +
 src/tests/stacking/map-fixed-size.metatest | 75 ++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)
---
diff --git a/src/tests/meson.build b/src/tests/meson.build
index 8ee409e207..20c4725419 100644
--- a/src/tests/meson.build
+++ b/src/tests/meson.build
@@ -250,6 +250,7 @@ stacking_tests = [
   'restore-position',
   'default-size',
   'modals',
+  'map-fixed-size',
 ]
 
 foreach stacking_test: stacking_tests
diff --git a/src/tests/stacking/map-fixed-size.metatest b/src/tests/stacking/map-fixed-size.metatest
new file mode 100644
index 0000000000..992de0df70
--- /dev/null
+++ b/src/tests/stacking/map-fixed-size.metatest
@@ -0,0 +1,75 @@
+# Map an initially maximized window
+
+# Map a Wayland window initially maximized
+
+new_client w wayland
+create w/1 csd
+maximize w/1
+
+wait
+
+assert_stacking
+
+show w/1
+
+wait
+
+assert_stacking w/1
+assert_size w/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+hide w/1
+
+# Map a Wayland window initially fullscreen
+
+create w/2 csd
+fullscreen w/2
+
+wait
+
+assert_stacking
+
+show w/2
+
+wait
+
+assert_stacking w/2
+assert_size w/2 MONITOR_WIDTH MONITOR_HEIGHT
+
+hide w/2
+
+# Map a X11 window initially maximized
+
+new_client x x11
+create x/1 csd
+maximize x/1
+
+wait
+
+assert_stacking
+
+show x/1
+
+wait
+
+assert_stacking x/1
+assert_size x/1 MONITOR_WIDTH MONITOR_HEIGHT
+
+hide x/1
+
+# Map a X11 window initially fullscreen
+
+create x/2 csd
+fullscreen x/2
+
+wait
+
+assert_stacking
+
+show x/2
+
+wait
+
+assert_stacking x/2
+assert_size x/2 MONITOR_WIDTH MONITOR_HEIGHT
+
+hide x/2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]