summaryrefslogtreecommitdiff
path: root/sw/qa
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2022-04-05 20:09:27 +0200
committerMiklos Vajna <vmiklos@collabora.com>2022-04-06 08:13:28 +0200
commit91cbd74b6d469079e97064c9c88e0860941841fa (patch)
tree2bccb309bf0fe1070863a6cacb156f4e660dbbb1 /sw/qa
parent27aa7df0a093c9e18ce591d8c73b524ef7ff40de (diff)
CppunitTest_sw_ooxmlexport7: avoid mustTestImportOf()
Can use CPPUNIT_TEST_FIXTURE() instead. See commit a226cec52e536c46e03f57a5f1f7931abbeb0cdd (CppunitTest_sw_rtfimport: convert one testcase to use CPPUNIT_TEST_FIXTURE(), 2019-11-05) for motivation. Change-Id: I32bd9a8e6ddf706f87bc2f17b75539d4d4c68f13 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132586 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sw/qa')
-rw-r--r--sw/qa/extras/ooxmlexport/ooxmlexport7.cxx11
1 files changed, 2 insertions, 9 deletions
diff --git a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
index 23cdbc2c53b6..d1a4378b1b71 100644
--- a/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
+++ b/sw/qa/extras/ooxmlexport/ooxmlexport7.cxx
@@ -27,14 +27,6 @@ public:
Test() : SwModelTestBase("/sw/qa/extras/ooxmlexport/data/", "Office Open XML Text") {}
protected:
- /**
- * Denylist handling
- */
- bool mustTestImportOf(const char* filename) const override {
- // If the testcase is stored in some other format, it's pointless to test.
- return OString(filename).endsWith(".docx");
- }
-
// We import OOXML's EMUs into integral mm100 internal representation, then export back into
// EMUs. This results in inaccuracies.
void assertXPathHasApproxEMU(const xmlDocUniquePtr& pXmlDoc, const OString& rXPath,
@@ -731,8 +723,9 @@ CPPUNIT_TEST_FIXTURE(Test, testAbsolutePositionOffsetValue)
}
}
-DECLARE_OOXMLEXPORT_TEST(testRubyHyperlink, "rubyhyperlink.fodt")
+CPPUNIT_TEST_FIXTURE(Test, testRubyHyperlink)
{
+ loadAndReload("rubyhyperlink.fodt");
// test that export doesn't assert with overlapping ruby / hyperlink attr
}