summaryrefslogtreecommitdiff
path: root/qadevOOo/tests/java/ifc/form/_XFormController.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/ifc/form/_XFormController.java')
-rw-r--r--qadevOOo/tests/java/ifc/form/_XFormController.java20
1 files changed, 4 insertions, 16 deletions
diff --git a/qadevOOo/tests/java/ifc/form/_XFormController.java b/qadevOOo/tests/java/ifc/form/_XFormController.java
index 241df1c5c969..f8024d17e664 100644
--- a/qadevOOo/tests/java/ifc/form/_XFormController.java
+++ b/qadevOOo/tests/java/ifc/form/_XFormController.java
@@ -87,10 +87,10 @@ public class _XFormController extends MultiMethodTest {
XWindow wind = UnoRuntime.queryInterface(XWindow.class, cntrl);
wind.setFocus();
- shortWait();
+ util.utils.pause(1000);
XWindow otherWind = (XWindow)tEnv.getObjRelation("otherWindow");
otherWind.setFocus();
- shortWait();
+ util.utils.pause(1000);
log.println("activated = " + listener.activated +
", deactivated = " + listener.deactivated) ;
@@ -112,10 +112,10 @@ public class _XFormController extends MultiMethodTest {
XWindow wind = UnoRuntime.queryInterface(XWindow.class, cntrl);
wind.setFocus();
- shortWait();
+ util.utils.pause(1000);
XWindow otherWind = (XWindow)tEnv.getObjRelation("otherWindow");
otherWind.setFocus();
- shortWait();
+ util.utils.pause(1000);
log.println("activated = " + listener.activated +
", deactivated = " + listener.deactivated) ;
@@ -148,17 +148,5 @@ public class _XFormController extends MultiMethodTest {
tRes.tested("getCurrentControl()", res) ;
}
-
- /**
- * Sleeps for 0.2 sec. to allow StarOffice to react on <code>
- * reset</code> call.
- */
- private void shortWait() {
- try {
- Thread.sleep(1000) ;
- } catch (InterruptedException e) {
- System.out.println("While waiting :" + e) ;
- }
- }
}