From 7fe9adcd1e8649dca84d180102ed14f55a9963cb Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Tue, 25 Jun 2013 12:26:04 +0200 Subject: TestFocus02SwingAWTRobot: Fix Java7 'changed behavior': Relax focus traversal validation checks. --- .../com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test/com') diff --git a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java index 646dc711b..5b07c73bd 100644 --- a/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java +++ b/src/test/com/jogamp/opengl/test/junit/newt/TestFocus02SwingAWTRobot.java @@ -224,6 +224,7 @@ public class TestFocus02SwingAWTRobot extends UITestCase { System.err.println("FOCUS AWT Button request"); EventCountAdapterUtil.reset(eventCountAdapters); AWTRobotUtil.assertRequestFocusAndWait(robot, buttonNorthInner, buttonNorthInner, buttonNorthInnerFA, glWindow1FA); + Assert.assertEquals(false, glWindow1FA.focusGained()); Assert.assertEquals(false, newtCanvasAWTFA.focusGained()); Assert.assertEquals(false, buttonNorthOuterFA.focusGained()); System.err.println("FOCUS AWT Button sync"); @@ -246,7 +247,6 @@ public class TestFocus02SwingAWTRobot extends UITestCase { System.err.println("Info: Focus prev. gained, but NewtCanvasAWT didn't loose it. Gainer: "+glWindow1FA+"; Looser "+newtCanvasAWTFA); } - Assert.assertEquals(false, newtCanvasAWTFA.focusGained()); Assert.assertEquals(false, buttonNorthOuterFA.focusGained()); System.err.println("FOCUS NEWT Canvas/GLWindow sync"); AWTRobotUtil.assertKeyType(robot, java.awt.event.KeyEvent.VK_A, 2, glWindow1, glWindow1KA); -- cgit v1.2.3