mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 11:32:04 +00:00
monitor-unit-tests: Try resizing clients while headless
Prior to 6dcce19932
this test would crash.
https://bugzilla.gnome.org/show_bug.cgi?id=790207
This commit is contained in:
parent
c8a4e37e0c
commit
563c5b0612
@ -2927,6 +2927,7 @@ meta_test_monitor_no_outputs (void)
|
||||
}
|
||||
};
|
||||
MetaMonitorTestSetup *test_setup;
|
||||
GError *error = NULL;
|
||||
|
||||
test_setup = create_monitor_test_setup (&test_case,
|
||||
MONITOR_TEST_FLAG_NO_STORED);
|
||||
@ -2934,6 +2935,20 @@ meta_test_monitor_no_outputs (void)
|
||||
emulate_hotplug (test_setup);
|
||||
check_monitor_configuration (&test_case);
|
||||
|
||||
if (!test_client_do (x11_monitor_test_client, &error,
|
||||
"resize", X11_TEST_CLIENT_WINDOW,
|
||||
"123", "210",
|
||||
NULL))
|
||||
g_error ("Failed to resize X11 window: %s", error->message);
|
||||
|
||||
if (!test_client_do (wayland_monitor_test_client, &error,
|
||||
"resize", WAYLAND_TEST_CLIENT_WINDOW,
|
||||
"123", "210",
|
||||
NULL))
|
||||
g_error ("Failed to resize Wayland window: %s", error->message);
|
||||
|
||||
check_monitor_test_clients_state ();
|
||||
|
||||
/* Also check that we handle going headless -> headless */
|
||||
test_setup = create_monitor_test_setup (&test_case,
|
||||
MONITOR_TEST_FLAG_NO_STORED);
|
||||
|
Loading…
Reference in New Issue
Block a user