From 548b360c0e4693aac0cbdd2fcc1aab433fc54010 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 30 Sep 2014 11:48:59 +0200 Subject: Factor out duplicated code to XmlTestTools::assertXPathNoAttribute() Change-Id: I1eb3778e6bcdd8c44ffb9a7548add109331fc83b --- include/test/xmltesttools.hxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/test') diff --git a/include/test/xmltesttools.hxx b/include/test/xmltesttools.hxx index 6709c1ca3ce2..a3ac5d6ce5db 100644 --- a/include/test/xmltesttools.hxx +++ b/include/test/xmltesttools.hxx @@ -76,6 +76,10 @@ protected: * Useful for checking that we do have a no child nodes to a specific node (nNumberOfChildNodes == 0). */ void assertXPathChildren(xmlDocPtr pXmlDoc, const OString& rXPath, int nNumberOfChildNodes); + /** + * Assert that rXPath exists, has exactly 1 child node and does *not* have an attribute named rAttribute. + */ + void assertXPathNoAttribute(xmlDocPtr pXmlDoc, const OString& rXPath, const OString& rAttribute); }; -- cgit