CppunitTest_sw_uiwriter: fix failing unittest
When I wrotecd47dba9aa
, 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 pushedcd47dba9aa
, Michael S pushedbe2f539012
, that is whycd47dba9aa
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:
parent
cb3c87f2c5
commit
80eb0eb251
1 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue