summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.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/_svtools/AccessibleIconChoiceCtrlEntry.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/_svtools/AccessibleIconChoiceCtrlEntry.java')
-rw-r--r--qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java
index 3f15454992c1..b979ec1088ad 100644
--- a/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java
+++ b/qadevOOo/tests/java/mod/_svtools/AccessibleIconChoiceCtrlEntry.java
@@ -156,7 +156,7 @@ public class AccessibleIconChoiceCtrlEntry extends TestCase {
throw new StatusException( "Couldn't create document", e );
}
- shortWait();
+ util.utils.pause(5000);
XModel aModel1 = UnoRuntime.queryInterface(XModel.class, xTextDoc);
@@ -187,7 +187,7 @@ public class AccessibleIconChoiceCtrlEntry extends TestCase {
PropertyValue[] noArgs = new PropertyValue[0];
getting.dispatch(url[0], noArgs);
- shortWait();
+ util.utils.pause(5000);
XInterface oObj = null;
try {
@@ -201,7 +201,7 @@ public class AccessibleIconChoiceCtrlEntry extends TestCase {
XExtendedToolkit tk = UnoRuntime.queryInterface(XExtendedToolkit.class, oObj);
- shortWait();
+ util.utils.pause(5000);
XWindow xWindow = UnoRuntime.queryInterface(XWindow.class, tk.getActiveTopWindow());
@@ -236,16 +236,4 @@ public class AccessibleIconChoiceCtrlEntry extends TestCase {
return tEnv;
}
- /**
- * Sleeps for 0.5 sec. to allow StarOffice to react on <code>
- * reset</code> call.
- */
- private void shortWait() {
- try {
- Thread.sleep(5000);
- } catch (InterruptedException e) {
- System.out.println("While waiting :" + e) ;
- }
- }
-
}