7132367: [macosx] ChoiceMouseWheelTest should be adapted for mac toolkit

Reviewed-by: art
This commit is contained in:
Oleg Pekhovskiy 2012-02-08 18:28:10 +04:00
parent 0b4df63ee2
commit ff7281a866

View file

@ -96,7 +96,10 @@ public class ChoiceMouseWheelTest extends Frame {
// 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);