summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-12-22 10:02:49 +0200
committerNoel Grandin <noel@peralex.com>2015-01-12 08:36:17 +0200
commit09330056a01a4b5c3d16e3ffb6c1bff36099eb83 (patch)
treeefa793bee83eed4081edd52737e73216a3048b89 /qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
parent4bf4e3d40778051f1f886c47dd2b2bef82acf1e5 (diff)
java: simplify sleeping and waiting in tests
- remove the SHORT_WAIT test parameter, no-one is using it - inline the various independent shortWait() methods - use the util.utils.shortWait() utility method everywhere Change-Id: I93cd4a2580172a1441d2ff3d390f52b9505e2721
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/AccessibleList.java')
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleList.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
index 82a4b8d09ee6..12992f9209a8 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleList.java
@@ -78,7 +78,7 @@ public class AccessibleList extends TestCase {
XExtendedToolkit tk = UnoRuntime.queryInterface(
XExtendedToolkit.class, oObj);
- shortWait();
+ util.utils.pause(1000);
XModel aModel1 = UnoRuntime.queryInterface(XModel.class,
xTextDoc);
@@ -113,7 +113,7 @@ public class AccessibleList extends TestCase {
PropertyValue[] noArgs = new PropertyValue[0];
getting.dispatch(url[0], noArgs);
- shortWait();
+ util.utils.pause(1000);
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class,
tk.getActiveTopWindow());
@@ -136,7 +136,7 @@ public class AccessibleList extends TestCase {
XAccessibleSelection.class,
oObj);
xAccSel.selectAccessibleChild(3);
- shortWait();
+ util.utils.pause(1000);
} catch (com.sun.star.lang.IndexOutOfBoundsException e) {
throw new StatusException("Can't switch to required tab", e);
}
@@ -213,16 +213,4 @@ public class AccessibleList extends TestCase {
throw new StatusException("Can't create document", e);
}
}
-
- /**
- * Sleeps for 0.5 sec. to allow StarOffice to react on <code>
- * reset</code> call.
- */
- private void shortWait() {
- try {
- Thread.sleep(1000);
- } catch (InterruptedException e) {
- log.println("While waiting :" + e);
- }
- }
} \ No newline at end of file