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

Stephan Bergmann sbergman at redhat.com
Wed Apr 6 10:21:58 UTC 2016


 framework/qa/complex/XTitle/CheckXTitle.java |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 70ad4333d6809b890d14939f9bef926b8e73d323
Author: Stephan Bergmann <sbergman at redhat.com>
Date:   Wed Apr 6 12:19:56 2016 +0200

    See if waitForEventIdle helps here
    
    ...the test often fails with the assertNotNull in prepareQueryAndDispatch
    firing, suggesting there's a race in getting the dispatch processed before
    proceeding
    
    Change-Id: Ib338d761df638a0c5d53777352cfe7519742112b

diff --git a/framework/qa/complex/XTitle/CheckXTitle.java b/framework/qa/complex/XTitle/CheckXTitle.java
index 486971a..32da8d4 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -23,6 +23,7 @@ import static org.junit.Assert.assertEquals;
 import static org.junit.Assert.assertNull;
 import static org.junit.Assert.fail;
 import helper.URLHelper;
+import util.utils;
 
 import org.junit.After;
 import org.junit.AfterClass;
@@ -211,10 +212,12 @@ public class CheckXTitle
         // switch to print preview mode
         xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, xModel.getCurrentController() );
         prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_PRINT_PREVIEW );
+        utils.waitForEventIdle(m_xMSF);
 
         // switch back to default mode
         xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, xModel.getCurrentController() );
         prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
+        utils.waitForEventIdle(m_xMSF);
 
         // close document
         xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, xModel.getCurrentController() );


More information about the Libreoffice-commits mailing list