summaryrefslogtreecommitdiff
path: root/test/source
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-11-25 16:36:57 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-11-25 17:19:10 +0100
commit2f91ab025de850fe5af8114565755a8deed55911 (patch)
treed2938c6bf46a7195d942407add7c97e78e1ae3b2 /test/source
parentec345c02d8fa5a7c7d4ea4ad08ae7be5303d9b20 (diff)
Merge two assertXPath overloads that both check number of nodes
Change-Id: I67eec623b90ab20330fa0c268152211b6bbdbe1e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143301 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'test/source')
-rw-r--r--test/source/xmltesttools.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/test/source/xmltesttools.cxx b/test/source/xmltesttools.cxx
index 26973b440c61..e329bc968760 100644
--- a/test/source/xmltesttools.cxx
+++ b/test/source/xmltesttools.cxx
@@ -162,11 +162,6 @@ OUString XmlTestTools::getXPathContent(const xmlDocUniquePtr& pXmlDoc, const OSt
CPPUNIT_FAIL("Invalid XPath type");
}
-void XmlTestTools::assertXPath(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath)
-{
- getXPath(pXmlDoc, rXPath, ""); // it asserts that rXPath exists, and returns exactly one node
-}
-
void XmlTestTools::assertXPath(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath, const OString& rAttribute, const OUString& rExpectedValue)
{
OUString aValue = getXPath(pXmlDoc, rXPath, rAttribute);