7132367: [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit
authorbagiras
Wed, 08 Feb 2012 18:28:10 +0400
changeset 11810 4865c8aa6687
parent 11809 d65aab67ee8a
child 11811 e0ba00baef88
7132367: [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit Reviewed-by: art
jdk/test/java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java
--- a/jdk/test/java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java	Wed Feb 08 16:15:12 2012 +0400
+++ b/jdk/test/java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java	Wed Feb 08 18:28:10 2012 +0400
@@ -96,7 +96,10 @@
 
             // Test mouse wheel over the choice
             String name = Toolkit.getDefaultToolkit().getClass().getName();
-            if(!name.equals("sun.awt.X11.XToolkit")) { // mouse wheel doesn't work for the choice on X11, so skip it
+
+            // mouse wheel doesn't work for the choice on X11 and Mac, so skip it
+            if(!name.equals("sun.awt.X11.XToolkit")
+               && !name.equals("sun.lwawt.macosx.LWCToolkit")) {
                 robot.mouseWheel(1);
                 Util.waitForIdle(robot);