From 05198e2df1fa79b768bf009f3a053a7b04cc01cc Mon Sep 17 00:00:00 2001 From: Florin Apostol Date: Mon, 15 Jun 2015 17:34:48 +0100 Subject: [PATCH] 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 --- tests/check/elements/dash_mpd.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tests/check/elements/dash_mpd.c b/tests/check/elements/dash_mpd.c index 0b4a87ccde..7ed5a80d1f 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) "" "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);