diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-30 11:48:59 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-09-30 12:07:32 +0200 |
commit | 548b360c0e4693aac0cbdd2fcc1aab433fc54010 (patch) | |
tree | b1c0931208a55b870cfd5f160c2a91258431507e /include/test | |
parent | a87d0bc0f5ace66c5d0d71f310f99ba9dbebc543 (diff) |
Factor out duplicated code to XmlTestTools::assertXPathNoAttribute()
Change-Id: I1eb3778e6bcdd8c44ffb9a7548add109331fc83b
Diffstat (limited to 'include/test')
-rw-r--r-- | include/test/xmltesttools.hxx | 4 |
1 files changed, 4 insertions, 0 deletions
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); }; |