mirror of
https://github.com/brl/mutter.git
synced 2024-11-24 17:10:40 -05:00
tests/clutter: Port timeline-progress to current test suite
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1289
This commit is contained in:
parent
73da901cd3
commit
420ca31f0b
@ -35,6 +35,7 @@ clutter_conform_tests_general_tests = [
|
|||||||
'script-parser',
|
'script-parser',
|
||||||
'timeline',
|
'timeline',
|
||||||
'timeline-interpolate',
|
'timeline-interpolate',
|
||||||
|
'timeline-progress',
|
||||||
'units',
|
'units',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
|
#define CLUTTER_DISABLE_DEPRECATION_WARNINGS
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <clutter/clutter.h>
|
#include <clutter/clutter.h>
|
||||||
#include "test-conform-common.h"
|
|
||||||
|
|
||||||
void
|
#include "tests/clutter-test-utils.h"
|
||||||
timeline_progress_step (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
|
|
||||||
gconstpointer dummy G_GNUC_UNUSED)
|
static void
|
||||||
|
timeline_progress_step (void)
|
||||||
{
|
{
|
||||||
ClutterTimeline *timeline;
|
ClutterTimeline *timeline;
|
||||||
|
|
||||||
@ -86,9 +87,8 @@ timeline_progress_step (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
|
|||||||
g_object_unref (timeline);
|
g_object_unref (timeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
timeline_progress_mode (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
|
timeline_progress_mode (void)
|
||||||
gconstpointer dummy G_GNUC_UNUSED)
|
|
||||||
{
|
{
|
||||||
ClutterTimeline *timeline;
|
ClutterTimeline *timeline;
|
||||||
|
|
||||||
@ -108,3 +108,8 @@ timeline_progress_mode (TestConformSimpleFixture *fixture G_GNUC_UNUSED,
|
|||||||
|
|
||||||
g_object_unref (timeline);
|
g_object_unref (timeline);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLUTTER_TEST_SUITE (
|
||||||
|
CLUTTER_TEST_UNIT ("/timeline/progress/step", timeline_progress_step);
|
||||||
|
CLUTTER_TEST_UNIT ("/timeline/progress/mode", timeline_progress_mode)
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user