From 72873aed92f880e233c048feb985a1a2be3e62c0 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 1 Feb 2011 18:02:23 +0100 Subject: [PATCH] test: check the height of a TimelineObject when adding effects to it --- tests/check/ges/effects.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/check/ges/effects.c b/tests/check/ges/effects.c index 6386b7db85..1e58fba955 100644 --- a/tests/check/ges/effects.c +++ b/tests/check/ges/effects.c @@ -90,6 +90,7 @@ GST_START_TEST (test_get_effects_from_tl) GESTimelineTestSource *source; GList *effects, *tmp = NULL; gint effect_prio = -1; + guint tl_object_height = 0; ges_init (); @@ -132,8 +133,10 @@ GST_START_TEST (test_get_effects_from_tl) fail_unless (ges_track_add_object (track_video, GES_TRACK_OBJECT (track_effect2))); - effects = ges_timeline_object_get_effects (GES_TIMELINE_OBJECT (source)); + g_object_get (G_OBJECT (source), "height", &tl_object_height, NULL); + fail_unless (tl_object_height == 4); + effects = ges_timeline_object_get_effects (GES_TIMELINE_OBJECT (source)); for (tmp = effects; tmp; tmp = tmp->next) { gint priority = ges_timeline_object_get_top_effect_position (GES_TIMELINE_OBJECT