summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerge Krot <Serge.Krot@cib.de>2017-11-02 12:26:34 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-11-03 09:35:01 +0100
commit9a08e340ca7c5353b5347e5c5346c857d48011f4 (patch)
tree1593846b267ef03d2aeecf077171893553a03e57
parent6cef8dd228dacf680dfb78f7113de186143da82c (diff)
Return new line symbol in unit test
For Win32 we cannot use directly "\n" symbol, instead SAL_NEWLINE_STRING should be used. Change-Id: Icf607fcc20086201fb34423f0a98d6817218bb0f Reviewed-on: https://gerrit.libreoffice.org/44207 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
-rw-r--r--sw/qa/extras/rtfexport/rtfexport2.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/extras/rtfexport/rtfexport2.cxx b/sw/qa/extras/rtfexport/rtfexport2.cxx
index 7746cec31862..35e5d461e15c 100644
--- a/sw/qa/extras/rtfexport/rtfexport2.cxx
+++ b/sw/qa/extras/rtfexport/rtfexport2.cxx
@@ -1144,7 +1144,11 @@ DECLARE_RTFEXPORT_TEST(testCp1000018, "cp1000018.rtf")
uno::Reference<text::XFootnotesSupplier> xFootnotesSupplier(mxComponent, uno::UNO_QUERY);
uno::Reference<container::XIndexAccess> xFootnotes(xFootnotesSupplier->getFootnotes(), uno::UNO_QUERY);
uno::Reference<text::XTextRange> xTextRange(xFootnotes->getByIndex(0), uno::UNO_QUERY);
- CPPUNIT_ASSERT(xTextRange->getString().startsWithIgnoreAsciiCase("Footnote first line"));
+
+ OUString const aExpected = "Footnote first line." SAL_NEWLINE_STRING;
+ OUString const aActual = xTextRange->getString();
+
+ CPPUNIT_ASSERT_EQUAL(aExpected, aActual);
}
DECLARE_RTFEXPORT_TEST(testFdo94835, "fdo94835.rtf")