From 09330056a01a4b5c3d16e3ffb6c1bff36099eb83 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Mon, 22 Dec 2014 10:02:49 +0200 Subject: 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 --- qadevOOo/tests/java/ifc/awt/_XTextComponent.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'qadevOOo/tests/java/ifc/awt/_XTextComponent.java') diff --git a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java b/qadevOOo/tests/java/ifc/awt/_XTextComponent.java index 33f8fdfe10e5..c1a73b656ff3 100644 --- a/qadevOOo/tests/java/ifc/awt/_XTextComponent.java +++ b/qadevOOo/tests/java/ifc/awt/_XTextComponent.java @@ -90,11 +90,7 @@ public class _XTextComponent extends MultiMethodTest { public void _addTextListener(){ oObj.addTextListener(listener); oObj.setText("Listen"); - try { - Thread.sleep(500); - } catch(InterruptedException e) { - e.printStackTrace(log); - } + util.utils.shortWait(); if (!textChanged) { log.println("Listener wasn't called after changing Text"); } -- cgit