[mutter/gnome-3-34] tests/monitor-unit-tests: Add another tiling window hot plug test
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gnome-3-34] tests/monitor-unit-tests: Add another tiling window hot plug test
- Date: Tue, 5 Nov 2019 11:57:31 +0000 (UTC)
commit 5e1bbb770e48641e03321f7e407e9fe4e511d7e7
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Nov 1 13:48:50 2019 +0100
tests/monitor-unit-tests: Add another tiling window hot plug test
Checks that we handle hot plugs of a untiled window, that was previously
tiled.
https://gitlab.gnome.org/GNOME/mutter/merge_requests/912
src/tests/monitor-unit-tests.c | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
---
diff --git a/src/tests/monitor-unit-tests.c b/src/tests/monitor-unit-tests.c
index c03c17e8d..b498d899f 100644
--- a/src/tests/monitor-unit-tests.c
+++ b/src/tests/monitor-unit-tests.c
@@ -5857,6 +5857,29 @@ meta_test_monitor_wm_tiling (void)
dispatch ();
+ /*
+ * 1) Start with two monitors connected.
+ * 2) Tile a window on the second monitor.
+ * 3) Untile window.
+ * 4) Unplug monitor.
+ * 5) Tile window again.
+ */
+
+ test_case.setup.n_outputs = 2;
+ test_setup = create_monitor_test_setup (&test_case,
+ MONITOR_TEST_FLAG_NO_STORED);
+ emulate_hotplug (test_setup);
+
+ meta_window_move_to_monitor (test_window, 1);
+ meta_window_tile (test_window, META_TILE_NONE);
+
+ test_case.setup.n_outputs = 1;
+ test_setup = create_monitor_test_setup (&test_case,
+ MONITOR_TEST_FLAG_NO_STORED);
+ emulate_hotplug (test_setup);
+
+ meta_window_tile (test_window, META_TILE_MAXIMIZED);
+
test_client_destroy (test_client);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]