Remove unused code
Change-Id: Ie16056c7e6716831a0ba61c1f22ded978fb5f3c2
This commit is contained in:
parent
b1b18894ca
commit
3e29b0c456
@ -45,24 +45,6 @@ class SdHTMLFilterTest : public SdModelTestBase
|
||||
return pXmlXpathObj->nodesetval;
|
||||
}
|
||||
|
||||
OUString getXPath(xmlDocPtr pXmlDoc, const OString& rXPath, const OString& rAttribute)
|
||||
{
|
||||
xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE(OString("XPath '" + rXPath + "' number of nodes is incorrect").getStr(),
|
||||
1, xmlXPathNodeSetGetLength(pXmlNodes));
|
||||
if (rAttribute.isEmpty())
|
||||
return OUString();
|
||||
xmlNodePtr pXmlNode = pXmlNodes->nodeTab[0];
|
||||
return OUString::createFromAscii((const char*)xmlGetProp(pXmlNode, BAD_CAST(rAttribute.getStr())));
|
||||
}
|
||||
|
||||
void assertXPath(xmlDocPtr pXmlDoc, const OString& rXPath, const OString& rAttribute = OString(), const OUString& rExpectedValue = OUString())
|
||||
{
|
||||
OUString aValue = getXPath(pXmlDoc, rXPath, rAttribute);
|
||||
CPPUNIT_ASSERT_EQUAL_MESSAGE(OString("Attribute '" + rAttribute + "' of '" + rXPath + "' incorrect value.").getStr(),
|
||||
rExpectedValue, aValue);
|
||||
}
|
||||
|
||||
void assertXPath(xmlDocPtr pXmlDoc, const OString& rXPath, int nNumberOfNodes)
|
||||
{
|
||||
xmlNodeSetPtr pXmlNodes = getXPathNode(pXmlDoc, rXPath);
|
||||
|
Loading…
x
Reference in New Issue
Block a user