[Libreoffice-commits] core.git: sw/qa
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 3 09:18:12 UTC 2020
sw/qa/extras/uiwriter/uiwriter3.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 37ee5d5a41c99cddae0652d839539df91f28f35d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Wed Sep 2 20:42:26 2020 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 3 11:17:32 2020 +0200
blind fix for testTdf130685 intermittent failure
Change-Id: If6f330ebbe63a5438769fda771d68afb1dcadf2c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101977
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sw/qa/extras/uiwriter/uiwriter3.cxx b/sw/qa/extras/uiwriter/uiwriter3.cxx
index b8972d19f7e2..1b7ac397b8e8 100644
--- a/sw/qa/extras/uiwriter/uiwriter3.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter3.cxx
@@ -802,13 +802,16 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130685)
// Without fix in place, this test would have failed with:
//- Expected: 2
//- Actual : 4
+ Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(2, getPages());
dispatchCommand(mxComponent, ".uno:Undo", {});
dispatchCommand(mxComponent, ".uno:Undo", {});
+ Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(1, getPages());
dispatchCommand(mxComponent, ".uno:Undo", {});
+ Scheduler::ProcessEventsToIdle();
CPPUNIT_ASSERT_EQUAL(2, getPages());
}
More information about the Libreoffice-commits
mailing list