extend XmlWalker test
Change-Id: Id46605dac8e9033a776e84e6533768ebcf339bbf Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180551 Reviewed-by: Tomaž Vajngerl <quikee@gmail.com> Tested-by: Jenkins
This commit is contained in:
parent
b3076a0016
commit
35a61e79b2
@ -78,6 +78,19 @@ void XmlWalkerTest::testReadXML()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(std::string_view("adobe:ns:meta/"), aWalker.namespaceHref());
|
||||
CPPUNIT_ASSERT_EQUAL(std::string_view("xx"), aWalker.namespacePrefix());
|
||||
|
||||
aWalker.children();
|
||||
while (aWalker.isValid())
|
||||
{
|
||||
if (aWalker.name() == "namespace-child")
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(std::string_view("adobe:ns:meta/"),
|
||||
aWalker.namespaceHref());
|
||||
CPPUNIT_ASSERT_EQUAL(std::string_view("xx"), aWalker.namespacePrefix());
|
||||
}
|
||||
aWalker.next();
|
||||
}
|
||||
aWalker.parent();
|
||||
}
|
||||
aWalker.next();
|
||||
}
|
||||
|
@ -9,5 +9,6 @@
|
||||
<child number="3">
|
||||
</child>
|
||||
<xx:with-namespace xmlns:xx="adobe:ns:meta/">
|
||||
<xx:namespace-child />
|
||||
</xx:with-namespace>
|
||||
</root>
|
||||
|
Loading…
x
Reference in New Issue
Block a user