mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 12:52:14 +00:00
tests/stage-view: Give outer container an explicit size
The test case checks that the stage views of hidden actors are not updated when the views of the visible outer parent change. The check for the outer parent's updated stage views currently relies on ClutterFixedLayout not excluding hidden children in its size request: As the container doesn't contain any visible children at that point, its size would change to 0x0 and end up on no stage view (rather than the assumed two). Avoid that oddity by giving the outer container a fixed size, so that the visibility of its child doesn't affect the test when we fix ClutterFixedLayout. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2488>
This commit is contained in:
parent
14b7da4292
commit
995ee2b638
@ -395,6 +395,7 @@ meta_test_actor_stage_views_hide_parent (void)
|
||||
stage_views = clutter_stage_peek_stage_views (CLUTTER_STAGE (stage));
|
||||
|
||||
outer_container = clutter_actor_new ();
|
||||
clutter_actor_set_size (outer_container, 50, 50);
|
||||
clutter_actor_add_child (stage, outer_container);
|
||||
|
||||
inner_container = clutter_actor_new ();
|
||||
|
Loading…
Reference in New Issue
Block a user