[Libreoffice-commits] core.git: libreofficekit/qa

Miklos Vajna vmiklos at collabora.co.uk
Tue Apr 11 20:55:54 UTC 2017


 libreofficekit/qa/unit/tiledrendering.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 84ed9adab673ff6d97ce634daf64f4e8bd0d00c1
Author: Miklos Vajna <vmiklos at collabora.co.uk>
Date:   Tue Apr 11 20:36:30 2017 +0200

    CppunitTest_libreofficekit_tiledrendering: add more processEventsToIdle calls
    
    With this the test passes for me 10 times in a row, while previously it
    failed from time to time, hopefully this fixes the false negatives.
    
    Change-Id: I233276ddfe4e9d8c86557f7f1c29d997f2fb51f6
    Reviewed-on: https://gerrit.libreoffice.org/36420
    Reviewed-by: Miklos Vajna <vmiklos at collabora.co.uk>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/libreofficekit/qa/unit/tiledrendering.cxx b/libreofficekit/qa/unit/tiledrendering.cxx
index a805121992e5..77d149d6b346 100644
--- a/libreofficekit/qa/unit/tiledrendering.cxx
+++ b/libreofficekit/qa/unit/tiledrendering.cxx
@@ -273,6 +273,7 @@ void TiledRenderingTest::testDocumentLoadLanguage(Office* pOffice)
 
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::RETURN);
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, css::awt::Key::RETURN);
+    processEventsToIdle();
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::UP);
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, css::awt::Key::UP);
     processEventsToIdle();
@@ -300,6 +301,7 @@ void TiledRenderingTest::testDocumentLoadLanguage(Office* pOffice)
 
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::RETURN);
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, css::awt::Key::RETURN);
+    processEventsToIdle();
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYINPUT, 0, css::awt::Key::UP);
     pDocument->postKeyEvent(LOK_KEYEVENT_KEYUP, 0, css::awt::Key::UP);
     processEventsToIdle();


More information about the Libreoffice-commits mailing list