CppunitTest_sw_uiwriter: fix failing unittest

When I wrote cd47dba9aa, the image
got removed when the paragraph was removed. I assumed that was
the expected behaviour but it turned out it was actually a bug (tdf#132321)
At the same time I pushed cd47dba9aa,
Michael S pushed be2f539012,
that is why cd47dba9aa fails in master now

Change-Id: I3d1df064d44388b00a871a9e1786a2febb824bf2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96196
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2020-06-12 11:22:04 +02:00
parent cb3c87f2c5
commit 80eb0eb251

View file

@ -251,7 +251,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
dispatchCommand(mxComponent, ".uno:SwBackspace", {});
Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(0, getShapes());
CPPUNIT_ASSERT_EQUAL(1, getShapes());
CPPUNIT_ASSERT_EQUAL(OUString(""), getParagraph(1)->getString());
dispatchCommand(mxComponent, ".uno:Undo", {});
@ -265,7 +265,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
dispatchCommand(mxComponent, ".uno:Redo", {});
Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(0, getShapes());
CPPUNIT_ASSERT_EQUAL(1, getShapes());
CPPUNIT_ASSERT_EQUAL(OUString(""), getParagraph(1)->getString());
//Without the fix in place, it would crash here
@ -273,7 +273,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf132725)
Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(1, getShapes());
CPPUNIT_ASSERT_EQUAL(OUString("A"), getParagraph(1)->getString());
CPPUNIT_ASSERT_EQUAL(OUString("AA"), getParagraph(1)->getString());
}
CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf126340)