diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-16 22:11:51 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-05-16 23:00:33 +0200 |
commit | 04ab7b8e16af993c3269e3780e5234903cdc0cf1 (patch) | |
tree | eaa7cc6b20d4dda2a0cdc5d8df2762d64d278f79 /sw/qa/extras/rtfexport | |
parent | 17ed8c53290eee47fcf085c1592b7e635055f1b3 (diff) |
sw: fix indentation in rtf{export,import} test
Change-Id: Ie777de47dc70da136b145028a08ea17a0de7a87d
Diffstat (limited to 'sw/qa/extras/rtfexport')
-rw-r--r-- | sw/qa/extras/rtfexport/rtfexport.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport.cxx b/sw/qa/extras/rtfexport/rtfexport.cxx index c395ec9e64c5..9a38b49160c6 100644 --- a/sw/qa/extras/rtfexport/rtfexport.cxx +++ b/sw/qa/extras/rtfexport/rtfexport.cxx @@ -30,9 +30,11 @@ class Test : public SwModelTestBase public: Test() : SwModelTestBase("/sw/qa/extras/rtfexport/data/", "Rich Text Format") {} - bool mustTestImportOf(const char* filename) const SAL_OVERRIDE { + bool mustTestImportOf(const char* filename) const SAL_OVERRIDE + { // Don't test the first import of these, for some reason those tests fail - const char* aBlacklist[] = { + const char* aBlacklist[] = + { "math-eqarray.rtf", "math-escaping.rtf", "math-lim.rtf", @@ -230,7 +232,7 @@ DECLARE_RTFEXPORT_TEST(testMathMso2007, "math-mso2007.rtf") aActual = getFormula(getRun(getParagraph(4), 1)); aExpected = OUString("f left (x right ) = {a} rsub {0} + sum from {n = 1} to {\xe2\x88\x9e} {left ({a} rsub {n} cos {n\xcf\x80x} over {L} + {b} rsub {n} sin {n\xcf\x80x} over {L} right )}", 144, - RTL_TEXTENCODING_UTF8); + RTL_TEXTENCODING_UTF8); CPPUNIT_ASSERT_EQUAL(aExpected, aActual); aActual = getFormula(getRun(getParagraph(5), 1)); @@ -355,7 +357,7 @@ DECLARE_RTFEXPORT_TEST(testFdo55939, "fdo55939.odt") getRun(xParagraph, 1, "Main text before footnote."); // Why the tab has to be removed here? CPPUNIT_ASSERT_EQUAL(OUString("Footnote text."), - getProperty< uno::Reference<text::XTextRange> >(getRun(xParagraph, 2), "Footnote")->getText()->getString().replaceAll("\t", "")); + getProperty< uno::Reference<text::XTextRange> >(getRun(xParagraph, 2), "Footnote")->getText()->getString().replaceAll("\t", "")); getRun(xParagraph, 3, " Text after the footnote."); // However, this leading space is intentional and OK. } |