Kaydet (Commit) 04ab7b8e authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: fix indentation in rtf{export,import} test

Change-Id: Ie777de47dc70da136b145028a08ea17a0de7a87d
üst 17ed8c53
...@@ -30,9 +30,11 @@ class Test : public SwModelTestBase ...@@ -30,9 +30,11 @@ class Test : public SwModelTestBase
public: public:
Test() : SwModelTestBase("/sw/qa/extras/rtfexport/data/", "Rich Text Format") {} 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 // Don't test the first import of these, for some reason those tests fail
const char* aBlacklist[] = { const char* aBlacklist[] =
{
"math-eqarray.rtf", "math-eqarray.rtf",
"math-escaping.rtf", "math-escaping.rtf",
"math-lim.rtf", "math-lim.rtf",
...@@ -230,7 +232,7 @@ DECLARE_RTFEXPORT_TEST(testMathMso2007, "math-mso2007.rtf") ...@@ -230,7 +232,7 @@ DECLARE_RTFEXPORT_TEST(testMathMso2007, "math-mso2007.rtf")
aActual = getFormula(getRun(getParagraph(4), 1)); 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, 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); CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
aActual = getFormula(getRun(getParagraph(5), 1)); aActual = getFormula(getRun(getParagraph(5), 1));
...@@ -355,7 +357,7 @@ DECLARE_RTFEXPORT_TEST(testFdo55939, "fdo55939.odt") ...@@ -355,7 +357,7 @@ DECLARE_RTFEXPORT_TEST(testFdo55939, "fdo55939.odt")
getRun(xParagraph, 1, "Main text before footnote."); getRun(xParagraph, 1, "Main text before footnote.");
// Why the tab has to be removed here? // Why the tab has to be removed here?
CPPUNIT_ASSERT_EQUAL(OUString("Footnote text."), 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. getRun(xParagraph, 3, " Text after the footnote."); // However, this leading space is intentional and OK.
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment