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>
This commit is contained in:
Sebastian Wick 2023-10-27 18:14:57 +02:00 committed by Marge Bot
parent 8f687ed98d
commit 13bbc4bc43
35 changed files with 10 additions and 8 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.6 KiB

After

Width:  |  Height:  |  Size: 177 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 176 B

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -110,8 +110,8 @@ toplevel_fullscreen (void)
wait_for_first_frame (test_window); wait_for_first_frame (test_window);
meta_window_get_frame_rect (test_window, &rect); meta_window_get_frame_rect (test_window, &rect);
g_assert_cmpint (rect.width, ==, 100); g_assert_cmpint (rect.width, ==, 640);
g_assert_cmpint (rect.height, ==, 100); g_assert_cmpint (rect.height, ==, 480);
g_assert_cmpint (rect.x, ==, 0); g_assert_cmpint (rect.x, ==, 0);
g_assert_cmpint (rect.y, ==, 0); g_assert_cmpint (rect.y, ==, 0);
assert_wayland_surface_size (test_window, 10, 10); assert_wayland_surface_size (test_window, 10, 10);
@ -154,8 +154,8 @@ toplevel_fullscreen_ref_test (void)
g_main_context_iteration (NULL, FALSE); g_main_context_iteration (NULL, FALSE);
meta_window_get_frame_rect (test_window, &rect); meta_window_get_frame_rect (test_window, &rect);
g_assert_cmpint (rect.width, ==, 100); g_assert_cmpint (rect.width, ==, 640);
g_assert_cmpint (rect.height, ==, 100); g_assert_cmpint (rect.height, ==, 480);
g_assert_cmpint (rect.x, ==, 0); g_assert_cmpint (rect.x, ==, 0);
g_assert_cmpint (rect.y, ==, 0); g_assert_cmpint (rect.y, ==, 0);
assert_wayland_surface_size (test_window, 10, 10); assert_wayland_surface_size (test_window, 10, 10);
@ -173,7 +173,8 @@ on_before_tests (void)
test_driver = meta_wayland_test_driver_new (compositor); 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, wayland_test_client = meta_wayland_test_client_new (test_context,
"fullscreen"); "fullscreen");

View File

@ -774,8 +774,8 @@ toplevel_bounds_monitors (void)
clutter_virtual_input_device_notify_absolute_motion (virtual_pointer, clutter_virtual_input_device_notify_absolute_motion (virtual_pointer,
CLUTTER_CURRENT_TIME, CLUTTER_CURRENT_TIME,
550.0, 100.0); 700.0, 100.0);
wait_for_cursor_position (550.0, 100.0); wait_for_cursor_position (700.0, 100.0);
wayland_test_client = wayland_test_client =
meta_wayland_test_client_new (test_context, "xdg-toplevel-bounds"); 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); meta_context_get_wayland_compositor (test_context);
test_driver = meta_wayland_test_driver_new (compositor); test_driver = meta_wayland_test_driver_new (compositor);
virtual_monitor = meta_create_test_monitor (test_context, virtual_monitor = meta_create_test_monitor (test_context,
400, 400, 60.0); 640, 480, 60.0);
} }
static void static void