[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - sw/qa
Jan Holesovsky
kendy at collabora.com
Thu Mar 1 11:19:17 UTC 2018
sw/qa/extras/uiwriter/uiwriter.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 6d41b4cdc880fa52c751a81edfa93b8d6aeb44e0
Author: Jan Holesovsky <kendy at collabora.com>
Date: Tue Feb 27 15:27:05 2018 +0100
sw: Add a few missing processEventsToIdle()'s in the tests.
Change-Id: I9c51fb8be290e66cbeae755e4fdc1c42662efe72
Reviewed-on: https://gerrit.libreoffice.org/50442
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/sw/qa/extras/uiwriter/uiwriter.cxx b/sw/qa/extras/uiwriter/uiwriter.cxx
index bf98a565b1f2..44a5903bcd02 100644
--- a/sw/qa/extras/uiwriter/uiwriter.cxx
+++ b/sw/qa/extras/uiwriter/uiwriter.cxx
@@ -3729,6 +3729,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).
@@ -4185,6 +4186,7 @@ void SwUiWriterTest::testTdf84695()
SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get());
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.
@@ -4207,6 +4209,7 @@ void SwUiWriterTest::testTdf84695NormalChar()
// Now pressing 'a' should add a character.
SwXTextDocument* pXTextDocument = dynamic_cast<SwXTextDocument *>(mxComponent.get());
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.
More information about the Libreoffice-commits
mailing list