mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 14:36:24 +00:00
update unit tests
This commit is contained in:
parent
e8ded5bcf9
commit
5857274f8e
1 changed files with 7 additions and 6 deletions
|
@ -21,7 +21,8 @@
|
||||||
#include <ges/ges.h>
|
#include <ges/ges.h>
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <ges/ges-timeline-transition.h>
|
#include <ges/ges-timeline-transition.h>
|
||||||
#include <ges/ges-track-transition.h>
|
#include <ges/ges-track-video-transition.h>
|
||||||
|
#include <ges/ges-track-audio-transition.h>
|
||||||
|
|
||||||
/* This test uri will eventually have to be fixed */
|
/* This test uri will eventually have to be fixed */
|
||||||
#define TEST_URI "blahblahblah"
|
#define TEST_URI "blahblahblah"
|
||||||
|
@ -51,7 +52,7 @@ GST_START_TEST (test_transition_basic)
|
||||||
track);
|
track);
|
||||||
|
|
||||||
fail_unless (trackobject != NULL);
|
fail_unless (trackobject != NULL);
|
||||||
fail_unless (GES_TRACK_TRANSITION (trackobject)->vtype == 1);
|
fail_unless (GES_TRACK_VIDEO_TRANSITION (trackobject)->type == 1);
|
||||||
|
|
||||||
fail_unless (ges_timeline_object_release_track_object (GES_TIMELINE_OBJECT
|
fail_unless (ges_timeline_object_release_track_object (GES_TIMELINE_OBJECT
|
||||||
(tr2), trackobject) == TRUE);
|
(tr2), trackobject) == TRUE);
|
||||||
|
@ -127,17 +128,17 @@ GST_START_TEST (test_transition_properties)
|
||||||
/* test changing vtype */
|
/* test changing vtype */
|
||||||
g_object_set (object, "vtype", VTYPE_CROSSFADE, NULL);
|
g_object_set (object, "vtype", VTYPE_CROSSFADE, NULL);
|
||||||
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, VTYPE_CROSSFADE);
|
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, VTYPE_CROSSFADE);
|
||||||
assert_equals_int (GES_TRACK_TRANSITION (trackobject)->vtype,
|
assert_equals_int (GES_TRACK_VIDEO_TRANSITION (trackobject)->type,
|
||||||
VTYPE_CROSSFADE);
|
VTYPE_CROSSFADE);
|
||||||
g_object_set (object, "vtype", 1, NULL);
|
g_object_set (object, "vtype", 1, NULL);
|
||||||
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, 1);
|
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, 1);
|
||||||
assert_equals_int (GES_TRACK_TRANSITION (trackobject)->vtype, 1);
|
assert_equals_int (GES_TRACK_VIDEO_TRANSITION (trackobject)->type, 1);
|
||||||
g_object_set (object, "vtype", 8, NULL);
|
g_object_set (object, "vtype", 8, NULL);
|
||||||
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, 8);
|
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, 8);
|
||||||
assert_equals_int (GES_TRACK_TRANSITION (trackobject)->vtype, 8);
|
assert_equals_int (GES_TRACK_VIDEO_TRANSITION (trackobject)->type, 8);
|
||||||
g_object_set (object, "vtype", VTYPE_CROSSFADE, NULL);
|
g_object_set (object, "vtype", VTYPE_CROSSFADE, NULL);
|
||||||
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, VTYPE_CROSSFADE);
|
assert_equals_int (GES_TIMELINE_TRANSITION (object)->vtype, VTYPE_CROSSFADE);
|
||||||
assert_equals_int (GES_TRACK_TRANSITION (trackobject)->vtype,
|
assert_equals_int (GES_TRACK_VIDEO_TRANSITION (trackobject)->type,
|
||||||
VTYPE_CROSSFADE);
|
VTYPE_CROSSFADE);
|
||||||
|
|
||||||
ges_timeline_object_release_track_object (object, trackobject);
|
ges_timeline_object_release_track_object (object, trackobject);
|
||||||
|
|
Loading…
Reference in a new issue