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:
@@ -802,13 +802,16 @@ CPPUNIT_TEST_FIXTURE(SwUiWriterTest3, testTdf130685)
|
|||||||
// Without fix in place, this test would have failed with:
|
// Without fix in place, this test would have failed with:
|
||||||
//- Expected: 2
|
//- Expected: 2
|
||||||
//- Actual : 4
|
//- Actual : 4
|
||||||
|
Scheduler::ProcessEventsToIdle();
|
||||||
CPPUNIT_ASSERT_EQUAL(2, getPages());
|
CPPUNIT_ASSERT_EQUAL(2, getPages());
|
||||||
|
|
||||||
dispatchCommand(mxComponent, ".uno:Undo", {});
|
dispatchCommand(mxComponent, ".uno:Undo", {});
|
||||||
dispatchCommand(mxComponent, ".uno:Undo", {});
|
dispatchCommand(mxComponent, ".uno:Undo", {});
|
||||||
|
Scheduler::ProcessEventsToIdle();
|
||||||
CPPUNIT_ASSERT_EQUAL(1, getPages());
|
CPPUNIT_ASSERT_EQUAL(1, getPages());
|
||||||
|
|
||||||
dispatchCommand(mxComponent, ".uno:Undo", {});
|
dispatchCommand(mxComponent, ".uno:Undo", {});
|
||||||
|
Scheduler::ProcessEventsToIdle();
|
||||||
CPPUNIT_ASSERT_EQUAL(2, getPages());
|
CPPUNIT_ASSERT_EQUAL(2, getPages());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user