From 66351c03ef264b8f54a1edd7c04ab5a1fc10f11b Mon Sep 17 00:00:00 2001 From: Brandon Lewis Date: Fri, 2 Jul 2010 12:26:55 +0200 Subject: [PATCH] update unit tests --- tests/check/ges/overlays.c | 11 +++++------ tests/check/ges/titles.c | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/tests/check/ges/overlays.c b/tests/check/ges/overlays.c index 7e9b99a..49d90bc 100644 --- a/tests/check/ges/overlays.c +++ b/tests/check/ges/overlays.c @@ -155,16 +155,15 @@ GST_START_TEST (test_overlay_in_layer) /* test halign and valign */ g_object_set (source, "halignment", (gint) - GES_TRACK_TITLE_SRC_HALIGN_LEFT, - "valignment", (gint) GES_TRACK_TITLE_SRC_VALIGN_TOP, NULL); + GES_TEXT_HALIGN_LEFT, "valignment", (gint) GES_TEXT_VALIGN_TOP, NULL); g_object_get (source, "halignment", &halign, "valignment", &valign, NULL); - assert_equals_int (halign, GES_TRACK_TITLE_SRC_HALIGN_LEFT); - assert_equals_int (valign, GES_TRACK_TITLE_SRC_VALIGN_TOP); + assert_equals_int (halign, GES_TEXT_HALIGN_LEFT); + assert_equals_int (valign, GES_TEXT_VALIGN_TOP); halign = ((GESTrackTextOverlay *) trobj)->halign; valign = ((GESTrackTextOverlay *) trobj)->valign; - assert_equals_int (halign, GES_TRACK_TITLE_SRC_HALIGN_LEFT); - assert_equals_int (valign, GES_TRACK_TITLE_SRC_VALIGN_TOP); + assert_equals_int (halign, GES_TEXT_HALIGN_LEFT); + assert_equals_int (valign, GES_TEXT_VALIGN_TOP); GST_DEBUG ("removing the source"); diff --git a/tests/check/ges/titles.c b/tests/check/ges/titles.c index 411d679..ca3a2ac 100644 --- a/tests/check/ges/titles.c +++ b/tests/check/ges/titles.c @@ -156,16 +156,15 @@ GST_START_TEST (test_title_source_in_layer) /* test halign and valign */ g_object_set (source, "halignment", (gint) - GES_TRACK_TITLE_SRC_HALIGN_LEFT, - "valignment", (gint) GES_TRACK_TITLE_SRC_VALIGN_TOP, NULL); + GES_TEXT_HALIGN_LEFT, "valignment", (gint) GES_TEXT_VALIGN_TOP, NULL); g_object_get (source, "halignment", &halign, "valignment", &valign, NULL); - assert_equals_int (halign, GES_TRACK_TITLE_SRC_HALIGN_LEFT); - assert_equals_int (valign, GES_TRACK_TITLE_SRC_VALIGN_TOP); + assert_equals_int (halign, GES_TEXT_HALIGN_LEFT); + assert_equals_int (valign, GES_TEXT_VALIGN_TOP); halign = ((GESTrackTitleSource *) trobj)->halign; valign = ((GESTrackTitleSource *) trobj)->valign; - assert_equals_int (halign, GES_TRACK_TITLE_SRC_HALIGN_LEFT); - assert_equals_int (valign, GES_TRACK_TITLE_SRC_VALIGN_TOP); + assert_equals_int (halign, GES_TEXT_HALIGN_LEFT); + assert_equals_int (valign, GES_TEXT_VALIGN_TOP); GST_DEBUG ("removing the source"); -- 2.7.4