summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorin Apostol <florin.apostol@oregan.net>2015-06-15 17:34:48 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-06-22 13:55:46 +0200
commit05198e2df1fa79b768bf009f3a053a7b04cc01cc (patch)
tree3f337fb51fe61c31765f7f91878d202811747c6a
parenta573cc4004b2d96eeaa6f95e035ac6ced6cb134b (diff)
tests: dashdemux: extended MPD element test to test xml namespaces
Extended the dash_mpdparser_mpd testcase to also test parsing the xml namespace attribute. https://bugzilla.gnome.org/show_bug.cgi?id=750863
-rw-r--r--tests/check/elements/dash_mpd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c
index 0b4a87ccd..7ed5a80d1 100644
--- a/tests/check/elements/dash_mpd.c
+++ b/tests/check/elements/dash_mpd.c
@@ -81,6 +81,9 @@ GST_START_TEST (dash_mpdparser_mpd)
"<?xml version=\"1.0\"?>"
"<MPD xmlns=\"urn:mpeg:dash:schema:mpd:2011\""
" profiles=\"urn:mpeg:dash:profile:isoff-main:2011\""
+ " schemaLocation=\"TestSchemaLocation\""
+ " xmlns:xsi=\"TestNamespaceXSI\""
+ " xmlns:ext=\"TestNamespaceEXT\""
" id=\"testId\""
" type=\"static\""
" availabilityStartTime=\"2015-03-24T1:10:50\""
@@ -100,6 +103,12 @@ GST_START_TEST (dash_mpdparser_mpd)
assert_equals_int (ret, TRUE);
+ assert_equals_string (mpdclient->mpd_node->default_namespace,
+ "urn:mpeg:dash:schema:mpd:2011");
+ assert_equals_string (mpdclient->mpd_node->namespace_xsi, "TestNamespaceXSI");
+ assert_equals_string (mpdclient->mpd_node->namespace_ext, "TestNamespaceEXT");
+ assert_equals_string (mpdclient->mpd_node->schemaLocation,
+ "TestSchemaLocation");
assert_equals_string (mpdclient->mpd_node->id, "testId");
assert_equals_int (mpdclient->mpd_node->type, GST_MPD_FILE_TYPE_STATIC);