update unit tests

This commit is contained in:
Brandon Lewis 2010-07-02 12:26:55 +02:00 committed by Edward Hervey
parent ec803b0815
commit 66351c03ef
2 changed files with 10 additions and 12 deletions

View file

@ -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");

View file

@ -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");