summaryrefslogtreecommitdiff
path: root/qadevOOo
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-08-06 00:12:34 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-08-06 00:13:27 +0200
commitb80b7ba1791cdd9e79ed7a380b8981878f46b8a4 (patch)
tree0c9e3df7abbaf4a547af03442663a2c978ebde21 /qadevOOo
parentc04c2114d9159646dddd4807d026c9fee6953817 (diff)
Static method sleep from Thread should be accessed in a static way
Change-Id: I7d875dd74f8eff05f7a291100841779abbf5fd1c
Diffstat (limited to 'qadevOOo')
-rw-r--r--qadevOOo/runner/util/utils.java2
-rw-r--r--qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java2
-rw-r--r--qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java2
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java4
-rw-r--r--qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java2
6 files changed, 8 insertions, 8 deletions
diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java
index 8e9f4fa7a2f4..08acdc3800ff 100644
--- a/qadevOOo/runner/util/utils.java
+++ b/qadevOOo/runner/util/utils.java
@@ -752,7 +752,7 @@ public class utils {
*/
public static void shortWait(int milliseconds) {
try {
- Thread.currentThread().sleep(milliseconds);
+ Thread.sleep(milliseconds);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
diff --git a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
index c28505aa71d9..65629ec6af10 100644
--- a/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
+++ b/qadevOOo/tests/java/ifc/sheet/_XEnhancedMouseClickBroadcaster.java
@@ -124,7 +124,7 @@ public class _XEnhancedMouseClickBroadcaster extends MultiMethodTest {
private void shortWait() {
try {
- Thread.currentThread().sleep(2000);
+ Thread.sleep(2000);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
diff --git a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
index 0b47b4c35996..a5437cda3104 100644
--- a/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
+++ b/qadevOOo/tests/java/ifc/ucb/_XCommandProcessor.java
@@ -211,7 +211,7 @@ public class _XCommandProcessor extends MultiMethodTest {
aborter.start();
try {
- Thread.currentThread().sleep(15);
+ Thread.sleep(15);
} catch (InterruptedException e) {
}
diff --git a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
index d7d18f8e2914..ba6c952132eb 100644
--- a/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
+++ b/qadevOOo/tests/java/mod/_sc/ScAccessiblePreviewHeaderCell.java
@@ -276,9 +276,9 @@ public class ScAccessiblePreviewHeaderCell extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(500);
+ Thread.sleep(500);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
}
-} \ No newline at end of file
+}
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
index 819984ea1394..3d3d948e662d 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabControl.java
@@ -264,9 +264,9 @@ public class AccessibleTabControl extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(500);
+ Thread.sleep(500);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}
}
-} \ No newline at end of file
+}
diff --git a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
index ea3ff9eb89f1..014dbd122cb1 100644
--- a/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
+++ b/qadevOOo/tests/java/mod/_toolkit/AccessibleTabPage.java
@@ -270,7 +270,7 @@ public class AccessibleTabPage extends TestCase {
*/
private void shortWait() {
try {
- Thread.currentThread().sleep(1000);
+ Thread.sleep(1000);
} catch (InterruptedException e) {
System.out.println("While waiting :" + e);
}