tests/wayland: Move virtual output to lowest VKMS resolution
We want to run those tests in VKMS later with the same reference image. To make the tests as close to each other as possible we use the same resolution for the VKMS and the virtual output which is 640x480. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3350>
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 177 KiB |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 1.0 KiB |
@ -110,8 +110,8 @@ toplevel_fullscreen (void)
|
||||
wait_for_first_frame (test_window);
|
||||
|
||||
meta_window_get_frame_rect (test_window, &rect);
|
||||
g_assert_cmpint (rect.width, ==, 100);
|
||||
g_assert_cmpint (rect.height, ==, 100);
|
||||
g_assert_cmpint (rect.width, ==, 640);
|
||||
g_assert_cmpint (rect.height, ==, 480);
|
||||
g_assert_cmpint (rect.x, ==, 0);
|
||||
g_assert_cmpint (rect.y, ==, 0);
|
||||
assert_wayland_surface_size (test_window, 10, 10);
|
||||
@ -154,8 +154,8 @@ toplevel_fullscreen_ref_test (void)
|
||||
g_main_context_iteration (NULL, FALSE);
|
||||
|
||||
meta_window_get_frame_rect (test_window, &rect);
|
||||
g_assert_cmpint (rect.width, ==, 100);
|
||||
g_assert_cmpint (rect.height, ==, 100);
|
||||
g_assert_cmpint (rect.width, ==, 640);
|
||||
g_assert_cmpint (rect.height, ==, 480);
|
||||
g_assert_cmpint (rect.x, ==, 0);
|
||||
g_assert_cmpint (rect.y, ==, 0);
|
||||
assert_wayland_surface_size (test_window, 10, 10);
|
||||
@ -173,7 +173,8 @@ on_before_tests (void)
|
||||
|
||||
test_driver = meta_wayland_test_driver_new (compositor);
|
||||
|
||||
virtual_monitor = meta_create_test_monitor (test_context, 100, 100, 10.0);
|
||||
virtual_monitor = meta_create_test_monitor (test_context,
|
||||
640, 480, 60.0);
|
||||
|
||||
wayland_test_client = meta_wayland_test_client_new (test_context,
|
||||
"fullscreen");
|
||||
|
@ -774,8 +774,8 @@ toplevel_bounds_monitors (void)
|
||||
|
||||
clutter_virtual_input_device_notify_absolute_motion (virtual_pointer,
|
||||
CLUTTER_CURRENT_TIME,
|
||||
550.0, 100.0);
|
||||
wait_for_cursor_position (550.0, 100.0);
|
||||
700.0, 100.0);
|
||||
wait_for_cursor_position (700.0, 100.0);
|
||||
|
||||
wayland_test_client =
|
||||
meta_wayland_test_client_new (test_context, "xdg-toplevel-bounds");
|
||||
@ -837,8 +837,9 @@ on_before_tests (void)
|
||||
meta_context_get_wayland_compositor (test_context);
|
||||
|
||||
test_driver = meta_wayland_test_driver_new (compositor);
|
||||
|
||||
virtual_monitor = meta_create_test_monitor (test_context,
|
||||
400, 400, 60.0);
|
||||
640, 480, 60.0);
|
||||
}
|
||||
|
||||
static void
|
||||
|