aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-11-02 04:08:45 +0100
committerSven Gothel <[email protected]>2010-11-02 04:08:45 +0100
commit95a6f59f82fb2bfbc9316843ec760532baa17b0d (patch)
treeae980df55658e93b8fe34e3299123bf1a88c5712 /src
parentc5676b1b8e223c927be3169747e1028ed2edc7f3 (diff)
Fix focus test for windows: increase mouse click start delay, so previous focus click won't be counted
Diffstat (limited to 'src')
-rw-r--r--src/junit/com/jogamp/test/junit/newt/TestFocus01SwingAWTRobot.java12
-rw-r--r--src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java12
-rw-r--r--src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java2
3 files changed, 3 insertions, 23 deletions
diff --git a/src/junit/com/jogamp/test/junit/newt/TestFocus01SwingAWTRobot.java b/src/junit/com/jogamp/test/junit/newt/TestFocus01SwingAWTRobot.java
index 656783740..1002fc9f8 100644
--- a/src/junit/com/jogamp/test/junit/newt/TestFocus01SwingAWTRobot.java
+++ b/src/junit/com/jogamp/test/junit/newt/TestFocus01SwingAWTRobot.java
@@ -205,17 +205,7 @@ public class TestFocus01SwingAWTRobot extends UITestCase {
}
System.out.println("durationPerTest: "+durationPerTest);
String tstname = TestFocus01SwingAWTRobot.class.getName();
- org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(new String[] {
- tstname,
- "filtertrace=true",
- "haltOnError=false",
- "haltOnFailure=false",
- "showoutput=true",
- "outputtoformatters=true",
- "logfailedtests=true",
- "logtestlistenerevents=true",
- "formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter",
- "formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,TEST-"+tstname+".xml" } );
+ org.junit.runner.JUnitCore.main(tstname);
}
diff --git a/src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java b/src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java
index 8d262fc3f..3891f1565 100644
--- a/src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java
+++ b/src/junit/com/jogamp/test/junit/newt/TestFocus02SwingAWTRobot.java
@@ -295,17 +295,7 @@ public class TestFocus02SwingAWTRobot extends UITestCase {
System.err.println("durationPerTest "+durationPerTest);
System.err.println("waitReparent "+waitReparent);
String tstname = TestFocus02SwingAWTRobot.class.getName();
- org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(new String[] {
- tstname,
- "filtertrace=true",
- "haltOnError=false",
- "haltOnFailure=false",
- "showoutput=true",
- "outputtoformatters=true",
- "logfailedtests=true",
- "logtestlistenerevents=true",
- "formatter=org.apache.tools.ant.taskdefs.optional.junit.PlainJUnitResultFormatter",
- "formatter=org.apache.tools.ant.taskdefs.optional.junit.XMLJUnitResultFormatter,TEST-"+tstname+".xml" } );
+ org.junit.runner.JUnitCore.main(tstname);
}
}
diff --git a/src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java b/src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java
index 4e0d4a883..c49de3e1f 100644
--- a/src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java
+++ b/src/junit/com/jogamp/test/junit/util/AWTRobotUtil.java
@@ -301,7 +301,7 @@ public class AWTRobotUtil {
centerMouse(robot, obj);
- robot.delay(clickTO);
+ robot.delay(2*clickTO);
int c0 = mouseClickCounter.getCount();