diff options
author | Jan Holesovsky <kendy@collabora.com> | 2014-03-24 09:43:39 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-03-24 10:43:41 +0100 |
commit | ece15872c8e049a11773083edd80f55fb08b8bf4 (patch) | |
tree | 7f310ce5dacdd20fc1688823b76bbd5a30179f5d /sw | |
parent | 4365d3c120ec3952e051d31fa94ec25633737fda (diff) |
Simplify.
Change-Id: If20ed2636c9b3cfbfcfe058fe027bd0cc9f8f277
Diffstat (limited to 'sw')
-rw-r--r-- | sw/qa/extras/inc/swmodeltestbase.hxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sw/qa/extras/inc/swmodeltestbase.hxx b/sw/qa/extras/inc/swmodeltestbase.hxx index a204ca0720d8..f460800f9fd0 100644 --- a/sw/qa/extras/inc/swmodeltestbase.hxx +++ b/sw/qa/extras/inc/swmodeltestbase.hxx @@ -615,15 +615,7 @@ protected: */ void assertXPathContent(xmlDocPtr pXmlDoc, const OString& rXPath, const OUString& rContent) { - xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath); - - CPPUNIT_ASSERT_MESSAGE(OString("XPath '" + rXPath + "' not found").getStr(), - xmlXPathNodeSetGetLength(pXmlNodes) > 0); - - xmlNodePtr pXmlNode = pXmlNodes->nodeTab[0]; - - CPPUNIT_ASSERT_EQUAL_MESSAGE("XPath contents of child does not match", rContent, - OUString::createFromAscii((const char*)((pXmlNode->children[0]).content))); + CPPUNIT_ASSERT_EQUAL_MESSAGE("XPath contents of child does not match", rContent, getXPathContent(pXmlDoc, rXPath)); } /** |