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@redhat.com>
This commit is contained in:
Caolán McNamara
2020-09-02 20:42:26 +01:00
parent 3eb5318ed9
commit 37ee5d5a41

View File

@@ -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());
}