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

Stephan Bergmann (via logerrit) logerrit at kemper.freedesktop.org
Mon Jun 15 18:13:50 UTC 2020


 sw/qa/extras/uiwriter/uiwriter3.cxx |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 2b3b12f2d109b115bc802a57145e8924fa30430e
Author:     Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Mon Jun 15 17:57:43 2020 +0200
Commit:     Stephan Bergmann <sbergman at redhat.com>
CommitDate: Mon Jun 15 20:13:16 2020 +0200

    Revert "CppunitTest_sw_uiwriter: fix failing unittest"
    
    This reverts commit 80eb0eb25158147c18621072849b6684faa2b5c3.  The three changes
    it had made to CppunitTest_sw_uiwriter CPPUNIT_TEST_NAME=testTdf132725::TestBody
    started to each fail now with b314735568c1e9ab8ca52413017425bc2ef12973
    "tdf#132321 tdf#133957 sw: for at-para fly, ignore anchor SwIndex".
    
    Change-Id: I8bb4063713a9f3705120dd39943dabe24301f345
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96386
    Reviewed-by: Xisco Fauli <xiscofauli at libreoffice.org>
    Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
    Tested-by: Jenkins

diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx
index 9a0923b35abc..8a5e477af864 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -273,7 +273,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
     dispatchCommand(mxComponent, ".uno:SwBackspace", {});
     Scheduler::ProcessEventsToIdle();
 
-    CPPUNIT_ASSERT_EQUAL(1, getShapes());
+    CPPUNIT_ASSERT_EQUAL(0, getShapes());
     CPPUNIT_ASSERT_EQUAL(OUString(""), getParagraph(1)->getString());
 
     dispatchCommand(mxComponent, ".uno:Undo", {});
@@ -287,7 +287,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
     dispatchCommand(mxComponent, ".uno:Redo", {});
     Scheduler::ProcessEventsToIdle();
 
-    CPPUNIT_ASSERT_EQUAL(1, getShapes());
+    CPPUNIT_ASSERT_EQUAL(0, getShapes());
     CPPUNIT_ASSERT_EQUAL(OUString(""), getParagraph(1)->getString());
 
     //Without the fix in place, it would crash here
@@ -295,7 +295,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
     Scheduler::ProcessEventsToIdle();
 
     CPPUNIT_ASSERT_EQUAL(1, getShapes());
-    CPPUNIT_ASSERT_EQUAL(OUString("AA"), getParagraph(1)->getString());
+    CPPUNIT_ASSERT_EQUAL(OUString("A"), getParagraph(1)->getString());
 }
 
 CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf126340)


More information about the Libreoffice-commits mailing list