diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-04-06 12:19:56 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-04-06 12:19:56 +0200 |
commit | 70ad4333d6809b890d14939f9bef926b8e73d323 (patch) | |
tree | 20f743bd55a8078a3432b746bc93192eb245802c | |
parent | ffd919b2d0ee261b2364726985e804c6f6229655 (diff) |
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
-rw-r--r-- | framework/qa/complex/XTitle/CheckXTitle.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/framework/qa/complex/XTitle/CheckXTitle.java b/framework/qa/complex/XTitle/CheckXTitle.java index 486971ad8a3b..32da8d4d8f21 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() ); |