mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 15:40:41 -05:00
tests/clutter: Port timeline-rewind to current test suite
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
parent
420ca31f0b
commit
d742f9331c
@ -36,6 +36,7 @@ clutter_conform_tests_general_tests = [
|
|||||||
'timeline',
|
'timeline',
|
||||||
'timeline-interpolate',
|
'timeline-interpolate',
|
||||||
'timeline-progress',
|
'timeline-progress',
|
||||||
|
'timeline-rewind',
|
||||||
'units',
|
'units',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,8 +1,9 @@
|
|||||||
|
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <clutter/clutter.h>
|
#include <clutter/clutter.h>
|
||||||
|
|
||||||
#include "test-conform-common.h"
|
#include "tests/clutter-test-utils.h"
|
||||||
|
|
||||||
#define TEST_TIMELINE_DURATION 500
|
#define TEST_TIMELINE_DURATION 500
|
||||||
#define TEST_WATCHDOG_KICK_IN_SECONDS 10
|
#define TEST_WATCHDOG_KICK_IN_SECONDS 10
|
||||||
@ -66,7 +67,7 @@ new_frame_cb (ClutterTimeline *timeline,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
timeline_rewind (void)
|
timeline_rewind (void)
|
||||||
{
|
{
|
||||||
TestState state;
|
TestState state;
|
||||||
@ -90,3 +91,7 @@ timeline_rewind (void)
|
|||||||
|
|
||||||
g_object_unref (state.timeline);
|
g_object_unref (state.timeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLUTTER_TEST_SUITE (
|
||||||
|
CLUTTER_TEST_UNIT ("/timeline/rewind", timeline_rewind)
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user