summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-12-07 20:33:14 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-08 08:29:12 +0100
commit307a181254ad5e7b3ee52a4fcfae654a34281fbe (patch)
tree03c45b1a76f10010b815a4ae30bef6b8c186e1c1
parentuse the cached object range (diff)
downloadcore-307a181254ad5e7b3ee52a4fcfae654a34281fbe.tar.gz
core-307a181254ad5e7b3ee52a4fcfae654a34281fbe.zip
CppunitTest_sw_rtfexport: avoid DECLARE_RTFEXPORT_TEST() for export-only tests
Convert just one test before mass-converting all such tests in this suite. See commit a226cec52e536c46e03f57a5f1f7931abbeb0cdd (CppunitTest_sw_rtfimport: convert one testcase to use CPPUNIT_TEST_FIXTURE(), 2019-11-05) for motivation. Change-Id: I9eb0a6458ae9ea31608dcb5e02f6ba59d3f2a669 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126488 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sw/qa/extras/rtfexport/rtfexport.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx
index e9ddfdd8a079..a3f83ce44201 100644
--- a/sw/qa/extras/rtfexport/rtfexport.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport.cxx
@@ -56,9 +56,9 @@ public:
{
// Don't test the first import of these, for some reason those tests fail
const char* aDenylist[] = {
- "math-eqarray.rtf", "math-escaping.rtf", "math-lim.rtf",
- "math-mso2007.rtf", "math-nary.rtf", "math-rad.rtf",
- "math-vertical-stacks.rtf", "math-runs.rtf",
+ "math-escaping.rtf", "math-lim.rtf", "math-mso2007.rtf",
+ "math-nary.rtf", "math-rad.rtf", "math-vertical-stacks.rtf",
+ "math-runs.rtf",
};
std::vector<const char*> vDenylist(aDenylist, aDenylist + SAL_N_ELEMENTS(aDenylist));
@@ -209,8 +209,9 @@ DECLARE_RTFEXPORT_TEST(testMathAccents, "math-accents.rtf")
aActual);
}
-DECLARE_RTFEXPORT_TEST(testMathEqarray, "math-eqarray.rtf")
+CPPUNIT_TEST_FIXTURE(Test, testMathEqarray)
{
+ loadAndReload("math-eqarray.rtf");
OUString aActual = getFormula(getRun(getParagraph(1), 1));
CPPUNIT_ASSERT_EQUAL(
OUString("y = left lbrace stack { 0 , x < 0 # 1 , x = 0 # {x} ^ {2} , x > 0 } right none"),