mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 16:10:41 -05:00
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:
parent
dbb95cbe5f
commit
2202c0d02e
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user