test-timeline: instantiate a stage so the master clock runs
This makes test-timeline get the default stage so there is at least one stage instantiated. Without any stages the master clock will never run which was causing this test to fail.
This commit is contained in:
parent
7d1445afca
commit
175317a754
@ -185,6 +185,7 @@ void
|
|||||||
test_timeline (TestConformSimpleFixture *fixture,
|
test_timeline (TestConformSimpleFixture *fixture,
|
||||||
gconstpointer data)
|
gconstpointer data)
|
||||||
{
|
{
|
||||||
|
ClutterActor *stage;
|
||||||
ClutterTimeline *timeline_1;
|
ClutterTimeline *timeline_1;
|
||||||
TimelineData data_1;
|
TimelineData data_1;
|
||||||
ClutterTimeline *timeline_2;
|
ClutterTimeline *timeline_2;
|
||||||
@ -195,6 +196,10 @@ test_timeline (TestConformSimpleFixture *fixture,
|
|||||||
gsize n_markers;
|
gsize n_markers;
|
||||||
guint delay_tag;
|
guint delay_tag;
|
||||||
|
|
||||||
|
/* NB: We have to ensure a stage is instantiated else the master
|
||||||
|
* clock wont run... */
|
||||||
|
stage = clutter_stage_get_default ();
|
||||||
|
|
||||||
timeline_data_init (&data_1, 1);
|
timeline_data_init (&data_1, 1);
|
||||||
timeline_1 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS);
|
timeline_1 = clutter_timeline_new (FRAME_COUNT * 1000 / FPS);
|
||||||
clutter_timeline_add_marker_at_time (timeline_1, "start-marker",
|
clutter_timeline_add_marker_at_time (timeline_1, "start-marker",
|
||||||
|
Loading…
Reference in New Issue
Block a user