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
This commit is contained in:
Carlos Garnacho 2019-11-01 14:52:41 +01:00 committed by Jonas Ådahl
parent dbb95cbe5f
commit 2202c0d02e

View File

@ -316,6 +316,9 @@ actor_offscreen_redirect (void)
data.stage = clutter_test_get_stage (); data.stage = clutter_test_get_stage ();
data.parent_container = clutter_actor_new (); 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.container = g_object_new (foo_group_get_type (), NULL);
data.foo_actor = g_object_new (foo_actor_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); clutter_actor_set_size (CLUTTER_ACTOR (data.foo_actor), 100, 100);