tests/stage-view: Tweak test to make less racy

It'd happen that the test runner would get CPU starved, and not see the
frame-clock changed notification before the timeline stopped. Decrease
the risk for this by moving the initial position of the actor having its
position transitioned to be closer to the view edge. This means the
frame clock will be changed earlier, increasing the chance of the
timeline not stopping before the relayout happens.

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1555
This commit is contained in:
Jonas Ådahl 2020-11-08 22:22:34 +01:00 committed by Georges Basile Stavracas Neto
parent f57c39f511
commit 4cc4701851

View File

@ -774,7 +774,7 @@ meta_test_actor_stage_views_timeline (void)
actor = clutter_actor_new ();
clutter_actor_set_size (actor, 100, 100);
clutter_actor_set_position (actor, 100, 100);
clutter_actor_set_position (actor, 800, 100);
clutter_actor_add_child (stage, actor);
clutter_actor_show (stage);