supply type param to _find_track_objects in unit tests

This commit is contained in:
Brandon Lewis 2010-07-13 18:44:41 +02:00 committed by Edward Hervey
parent 3b1a0d756d
commit 286c5f78db
4 changed files with 9 additions and 5 deletions

View file

@ -144,7 +144,8 @@ GST_START_TEST (test_test_source_in_layer)
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
trobj =
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
GES_TYPE_TRACK_VIDEO_TEST_SOURCE);
ptrn = ((GESTrackVideoTestSource *) trobj)->pattern;
assert_equals_int (ptrn, GES_VIDEO_TEST_PATTERN_WHITE);
@ -153,7 +154,7 @@ GST_START_TEST (test_test_source_in_layer)
/* test audio properties as well */
trobj = ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source),
a);
a, GES_TYPE_TRACK_AUDIO_TEST_SOURCE);
g_assert (GES_IS_TRACK_AUDIO_TEST_SOURCE (trobj));
assert_equals_float (source->freq, 440);
assert_equals_float (source->volume, 0);

View file

@ -90,7 +90,8 @@ GST_START_TEST (test_layer_properties)
/* Add the object to the timeline */
fail_unless (ges_timeline_layer_add_object (layer,
GES_TIMELINE_OBJECT (object)));
trackobject = ges_timeline_object_find_track_object (object, track);
trackobject = ges_timeline_object_find_track_object (object, track,
G_TYPE_NONE);
fail_unless (trackobject != NULL);
/* This is not a SimpleLayer, therefore the properties shouldn't have changed */

View file

@ -136,7 +136,8 @@ GST_START_TEST (test_overlay_in_layer)
g_free (text);
trobj =
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
G_TYPE_NONE);
/* test the font-desc property */
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);

View file

@ -143,7 +143,8 @@ GST_START_TEST (test_title_source_in_layer)
g_free (text);
trobj =
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v);
ges_timeline_object_find_track_object (GES_TIMELINE_OBJECT (source), v,
GES_TYPE_TRACK_TITLE_SOURCE);
/* test the font-desc property */
g_object_set (source, "font-desc", (gchar *) "sans 72", NULL);