summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-02-14 15:44:37 +0100
committerMichael Stahl <michael.stahl@allotropia.de>2022-09-16 20:27:44 +0200
commitf335dad0fe61ec4807ad6ee17166a569e9a97b1d (patch)
tree425ce1bda41f241f9d53e8b7b11f3acc83cc46a8
parent6611f3c8e0b1229996f01a0d6206a218fdd3cbe7 (diff)
sw_uiwriter3: just check the number of pages is the same...
... before and after, sometimes it might be 6 instead of 7 and in this test we just care about it not crashing Change-Id: Ia358517f4b0c566199af368da51ba385845218a4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129916 Tested-by: Jenkins Reviewed-by: Michael Stahl <michael.stahl@allotropia.de> (cherry picked from commit 5c49a9c98620153e206a3aabc2a89ef19c0a1046)
-rw-r--r--sw/qa/extras/uiwriter/uiwriter.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index 1e0b5b46114e..4fd56405933d 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -4233,7 +4233,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf139843)
{
load(DATA_DIRECTORY, "tdf139843.odt");
- CPPUNIT_ASSERT_EQUAL(7, getPages());
+ int nPages = getPages();
lcl_dispatchCommand(mxComponent, ".uno:SelectAll", {});
Scheduler::ProcessEventsToIdle();
@@ -4247,7 +4247,7 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf139843)
lcl_dispatchCommand(mxComponent, ".uno:Paste", {});
Scheduler::ProcessEventsToIdle();
- CPPUNIT_ASSERT_EQUAL(7, getPages());
+ CPPUNIT_ASSERT_EQUAL(nPages, getPages());
}
CPPUNIT_TEST_FIXTURE(SwUiWriterTest, testTdf134252)