diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-29 20:42:44 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2024-07-30 13:49:32 +0200 |
commit | 3371a9b36fb455501449d6575250ff19e5ffa18b (patch) | |
tree | f8979735119f2c8d81cda3a3debb9d613ddf55b2 /include | |
parent | 4f0c25dda41b5a8f418c1e283a4a85143393ae4c (diff) |
sw: get rid of parseDump
So parseLayoutDump is only called once per test
Change-Id: Ia199e0a7eeac26fbde94f6450d2aa49828940806
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171219
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Tested-by: Jenkins
Diffstat (limited to 'include')
-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 bf91c5b20151..aa20257ff472 100644 --- a/include/test/xmltesttools.hxx +++ b/include/test/xmltesttools.hxx @@ -104,6 +104,10 @@ protected: * Assert that rXPath exists, has exactly 1 result set nodes and does *not* have an attribute named rAttribute. */ void assertXPathNoAttribute(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath, const OString& rAttribute); + /** + * Same as the assertXPathNoAttribute(), but don't assert: return the bool instead. + */ + bool hasXPathAttribute(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath, const OString& rAttribute); // Assert that the node name of the single node returned by an XPath is as specified, // e.g. to check order of elements, where getXPathPosition is unapplicable void assertXPathNodeName(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath, const OString& rExpectedName); |