diff options
author | Sven Gothel <[email protected]> | 2013-12-04 15:59:59 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-12-04 15:59:59 +0100 |
commit | e2b74932a334b4a0bb9fedc12b0bc51095d35d6a (patch) | |
tree | cc97287d9b22a8ecdb2d583d14e36a694f37c020 /src/test/com/jogamp/opengl | |
parent | 8512777873461ee33d8ed913ee26bafc00a08a02 (diff) |
TestNewtKeyEventAutoRepeatAWT: Fix regression of commit 8512777873461ee33d8ed913ee26bafc00a08a02
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r-- | src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java b/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java index 3ef96edc2..c374f1efe 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/event/TestNewtKeyEventAutoRepeatAWT.java @@ -161,6 +161,7 @@ public class TestNewtKeyEventAutoRepeatAWT extends UITestCase { keyAdapter.reset(); int firstIdx = 0; + // final ArrayList<EventObject> keyEvents = new ArrayList<EventObject>(); for(int i=0; i<loops; i++) { System.err.println("+++ KEY Event Auto-Repeat START Input Loop: "+i); AWTRobotUtil.waitForIdle(robot); @@ -188,10 +189,10 @@ public class TestNewtKeyEventAutoRepeatAWT extends UITestCase { AWTRobotUtil.keyPress(0, robot, true, java.awt.event.KeyEvent.VK_B, 10); AWTRobotUtil.keyPress(0, robot, false, java.awt.event.KeyEvent.VK_B, 250); AWTRobotUtil.waitForIdle(robot); - for(int j=0; j < NEWTKeyUtil.POLL_DIVIDER && keyAdapter.getQueueSize() < firstIdx+3; j++) { // wait until events are collected + for(int j=0; j < NEWTKeyUtil.POLL_DIVIDER && keyAdapter.getQueueSize() < firstIdx+2; j++) { // wait until events are collected robot.delay(NEWTKeyUtil.TIME_SLICE); } - firstIdx = keyEvents.size(); + firstIdx = keyAdapter.getQueueSize(); } // dumpKeyEvents(keyEvents); final List<EventObject> keyEvents = keyAdapter.copyQueue(); |