mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
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
This commit is contained in:
parent
a573cc4004
commit
05198e2df1
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue