changeset 4999:d2e067142112

7132367: [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit Reviewed-by: art
author bagiras
date Wed, 08 Feb 2012 18:28:10 +0400
parents 1880e8cc89b8
children d43447758eba
files test/java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/java/awt/Choice/ChoiceMouseWheelTest/ChoiceMouseWheelTest.java	Wed Feb 08 16:15:12 2012 +0400
+++ b/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);