summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2020-06-15 17:57:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2020-06-15 20:13:16 +0200
commit2b3b12f2d109b115bc802a57145e8924fa30430e (patch)
tree63e6dc8978fb5179c24c8d3eca4fcaad04039a80
parent1861363d623963461905f42aa0b9dc2301f2eaaa (diff)
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@libreoffice.org> Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Jenkins
-rw-r--r--sw/qa/extras/uiwriter/uiwriter3.cxx6
1 files changed, 3 insertions, 3 deletions
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)