1
0
Fork 0

tests/clutter: Port timeline-rewind to current test suite

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
Jonas Ådahl 2020-03-25 16:37:56 +01:00 committed by Georges Basile Stavracas Neto
parent 420ca31f0b
commit d742f9331c
2 changed files with 8 additions and 2 deletions

View file

@ -36,6 +36,7 @@ clutter_conform_tests_general_tests = [
'timeline',
'timeline-interpolate',
'timeline-progress',
'timeline-rewind',
'units',
]

View file

@ -1,8 +1,9 @@
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
#include <stdlib.h>
#include <glib.h>
#include <clutter/clutter.h>
#include "test-conform-common.h"
#include "tests/clutter-test-utils.h"
#define TEST_TIMELINE_DURATION 500
#define TEST_WATCHDOG_KICK_IN_SECONDS 10
@ -66,7 +67,7 @@ new_frame_cb (ClutterTimeline *timeline,
}
}
void
static void
timeline_rewind (void)
{
TestState state;
@ -90,3 +91,7 @@ timeline_rewind (void)
g_object_unref (state.timeline);
}
CLUTTER_TEST_SUITE (
CLUTTER_TEST_UNIT ("/timeline/rewind", timeline_rewind)
)