[Libreoffice-commits] core.git: sw/qa

Serge Krot Serge.Krot at cib.de
Fri Nov 3 08:35:30 UTC 2017


 sw/qa/extras/rtfexport/rtfexport2.cxx |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

New commits:
commit 9a08e340ca7c5353b5347e5c5346c857d48011f4
Author: Serge Krot <Serge.Krot at cib.de>
Date:   Thu Nov 2 12:26:34 2017 +0100

    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 at libreoffice.org>
    Reviewed-by: Mike Kaganski <mike.kaganski at collabora.com>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

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")


More information about the Libreoffice-commits mailing list