diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-22 10:02:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-01-12 08:36:17 +0200 |
commit | 09330056a01a4b5c3d16e3ffb6c1bff36099eb83 (patch) | |
tree | efa793bee83eed4081edd52737e73216a3048b89 /qadevOOo/tests/java/ifc/container/_XContainer.java | |
parent | 4bf4e3d40778051f1f886c47dd2b2bef82acf1e5 (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/ifc/container/_XContainer.java')
-rw-r--r-- | qadevOOo/tests/java/ifc/container/_XContainer.java | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/ifc/container/_XContainer.java b/qadevOOo/tests/java/ifc/container/_XContainer.java index f3277e9da837..78b8d79140ec 100644 --- a/qadevOOo/tests/java/ifc/container/_XContainer.java +++ b/qadevOOo/tests/java/ifc/container/_XContainer.java @@ -254,10 +254,10 @@ public class _XContainer extends MultiMethodTest { protected boolean performChanges2() { int precount = CC.getControls().length; CC.addControl("NewControl",(XControl) inst); - shortWait(); + util.utils.pause(1000); int count = CC.getControls().length; CC.removeControl(CC.getControl("NewControl")); - shortWait(); + util.utils.pause(1000); return count>precount; } @@ -337,18 +337,6 @@ public class _XContainer extends MultiMethodTest { return res; } - - /** - * 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) ; - } - } } |