diff options
Diffstat (limited to 'sw/qa/extras/uiwriter/uiwriter.cxx')
-rw-r--r-- | sw/qa/extras/uiwriter/uiwriter.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx index 926a064bf194..eb067907f284 100644 --- a/sw/qa/extras/uiwriter/uiwriter.cxx +++ b/sw/qa/extras/uiwriter/uiwriter.cxx @@ -4011,6 +4011,7 @@ void SwUiWriterTest::testTdf89954() pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 's', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 't', 0); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, '.', 0); + Scheduler::ProcessEventsToIdle(); SwNodeIndex aNodeIndex(pDoc->GetNodes().GetEndOfContent(), -1); // Placeholder character for the comment anchor was ^A (CH_TXTATR_BREAKWORD), not <fff9> (CH_TXTATR_INWORD). @@ -4628,6 +4629,7 @@ void SwUiWriterTest::testTdf84695() CPPUNIT_ASSERT(pXTextDocument); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_RETURN); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'a', 0); + Scheduler::ProcessEventsToIdle(); uno::Reference<text::XTextRange> xShape(getShape(1), uno::UNO_QUERY); // This was empty, Enter did not start the fly frame edit mode. @@ -4651,6 +4653,7 @@ void SwUiWriterTest::testTdf84695NormalChar() SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument*>(mxComponent.get()); CPPUNIT_ASSERT(pXTextDocument); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 'a', 0); + Scheduler::ProcessEventsToIdle(); uno::Reference<text::XTextRange> xShape(getShape(1), uno::UNO_QUERY); // This was empty, pressing a normal character did not start the fly frame edit mode. @@ -4675,6 +4678,7 @@ void SwUiWriterTest::testTdf84695Tab() CPPUNIT_ASSERT(pXTextDocument); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, KEY_TAB); pXTextDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, KEY_TAB); + Scheduler::ProcessEventsToIdle(); // And finally make sure the selection has changed. const SdrMarkList& rMarkList = pWrtShell->GetDrawView()->GetMarkedObjectList(); |