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

Jan Holesovsky kendy at collabora.com
Wed Apr 26 15:45:25 UTC 2017


 sw/qa/extras/uiwriter/uiwriter.cxx |   11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

New commits:
commit 8b2a287dacc4083c1cb3d6fba9ba41c5422beb12
Author: Jan Holesovsky <kendy at collabora.com>
Date:   Wed Apr 26 13:25:23 2017 +0200

    Hack-around an unclear Windows problem in the test.
    
    Change-Id: I5194c6a20953eb66745539493a8782f089e25e2a
    Reviewed-on: https://gerrit.libreoffice.org/36985
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>

diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 75ef9f9b82bb..b70ffbd30e4a 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -4563,7 +4563,6 @@ void SwUiWriterTest::testMsWordCompTrailingBlanks()
 
 void SwUiWriterTest::testCreateDocxAnnotation()
 {
-    if (true) return; // FIXME breaks on Windows
     createDoc();
 
     // insert an annotation with a text
@@ -4585,7 +4584,15 @@ void SwUiWriterTest::testCreateDocxAnnotation()
     uno::Reference<beans::XPropertySet> xField(xFields->nextElement(), uno::UNO_QUERY);
 
     // this was empty instead of "some text"
-    CPPUNIT_ASSERT_EQUAL(aSomeText, xField->getPropertyValue("Content").get<OUString>());
+    OUString aResultText = aSomeText
+#ifdef WNT
+        // FIXME From some unclear reason, on windows we get an additional
+        // paragraph in the comment - please adapt this test when that gets
+        // fixed.
+        + "\n"
+#endif
+        ;
+    CPPUNIT_ASSERT_EQUAL(aResultText, xField->getPropertyValue("Content").get<OUString>());
 }
 
 CPPUNIT_TEST_SUITE_REGISTRATION(SwUiWriterTest);


More information about the Libreoffice-commits mailing list