From 2202c0d02eacd49c982d102f49b99372cfd31786 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 1 Nov 2019 14:52:41 +0100 Subject: [PATCH] tests: Explicitly set a background color for offscreen actor tests Those change opacity and read pixels, relying on an implicit stage color. We won't do that anymore. https://gitlab.gnome.org/GNOME/mutter/merge_requests/911 --- src/tests/clutter/conform/actor-offscreen-redirect.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tests/clutter/conform/actor-offscreen-redirect.c b/src/tests/clutter/conform/actor-offscreen-redirect.c index 0a7c2a3c1..4970beb46 100644 --- a/src/tests/clutter/conform/actor-offscreen-redirect.c +++ b/src/tests/clutter/conform/actor-offscreen-redirect.c @@ -316,6 +316,9 @@ actor_offscreen_redirect (void) data.stage = clutter_test_get_stage (); data.parent_container = clutter_actor_new (); + clutter_actor_set_background_color (data.parent_container, + &(ClutterColor) { 255, 255, 255, 255 }); + data.container = g_object_new (foo_group_get_type (), NULL); data.foo_actor = g_object_new (foo_actor_get_type (), NULL); clutter_actor_set_size (CLUTTER_ACTOR (data.foo_actor), 100, 100);