summaryrefslogtreecommitdiff
path: root/framework/qa
diff options
context:
space:
mode:
authorAkash Jain <akash96j@gmail.com>2016-04-06 23:23:53 +0530
committerStephan Bergmann <sbergman@redhat.com>2016-04-07 06:33:16 +0000
commitf6695647b6c96a1875fd05a59e840ead11cd5520 (patch)
tree52f502e64d1621ebff9f2dd7ff998fb01236b006 /framework/qa
parentb9792cb9553abb11cc3c7fb6c68a88f716b07b57 (diff)
add waitForIdleEvent in remaining tests
add waitForIdleEvent in remaining tests in framework/qa/complex/XTitle/CheckXTitle.java Change-Id: Ibc98070c797ef56df60cd925353c9e364e83abe0 Reviewed-on: https://gerrit.libreoffice.org/23869 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'framework/qa')
-rw-r--r--framework/qa/complex/XTitle/CheckXTitle.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/qa/complex/XTitle/CheckXTitle.java b/framework/qa/complex/XTitle/CheckXTitle.java
index 32da8d4d8f21..3e98259bfda7 100644
--- a/framework/qa/complex/XTitle/CheckXTitle.java
+++ b/framework/qa/complex/XTitle/CheckXTitle.java
@@ -167,6 +167,7 @@ public class CheckXTitle
xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, xModel.getCurrentController() );
prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_PRINT_PREVIEW );
+ utils.waitForEventIdle(m_xMSF);
// get window title with ui in print preview mode
String printPreviewTitle = xTitle.getTitle();
assertEquals("Title mismatch between default view window title and print preview window title",
@@ -174,6 +175,7 @@ public class CheckXTitle
xDisProv = UnoRuntime.queryInterface( XDispatchProvider.class, xModel.getCurrentController() );
prepareQueryAndDispatch( xDisProv, UNO_URL_FOR_CLOSING_PRINT_PREVIEW );
+ utils.waitForEventIdle(m_xMSF);
//get window title with ui back in default mode
String printPreviewClosedTitle = xTitle.getTitle();
assertEquals("Title mismatch between default view window title and title after switching from print preview to default view window" ,defaultTitle, printPreviewClosedTitle);
@@ -239,8 +241,6 @@ public class CheckXTitle
this should fail because new doc can not be opened in
read only mode
*/
- // cr: this test should ideally be in CheckXModuleManager
- // but that test is disabled in JunitTest_framework_complex.mk
@Test public void checkLoadingWithReadOnly()
{
PropertyValue[] lArgs = new PropertyValue[2];