equal
deleted
inserted
replaced
94 int x = pt.x + size.width / 3; |
94 int x = pt.x + size.width / 3; |
95 robot.mouseMove(x, pt.y + size.height / 2); |
95 robot.mouseMove(x, pt.y + size.height / 2); |
96 |
96 |
97 // Test mouse wheel over the choice |
97 // Test mouse wheel over the choice |
98 String name = Toolkit.getDefaultToolkit().getClass().getName(); |
98 String name = Toolkit.getDefaultToolkit().getClass().getName(); |
99 if(!name.equals("sun.awt.X11.XToolkit")) { // mouse wheel doesn't work for the choice on X11, so skip it |
99 |
|
100 // mouse wheel doesn't work for the choice on X11 and Mac, so skip it |
|
101 if(!name.equals("sun.awt.X11.XToolkit") |
|
102 && !name.equals("sun.lwawt.macosx.LWCToolkit")) { |
100 robot.mouseWheel(1); |
103 robot.mouseWheel(1); |
101 Util.waitForIdle(robot); |
104 Util.waitForIdle(robot); |
102 |
105 |
103 if(!wheelMoved || !itemChanged) { |
106 if(!wheelMoved || !itemChanged) { |
104 throw new RuntimeException("Mouse Wheel over the choice failed!"); |
107 throw new RuntimeException("Mouse Wheel over the choice failed!"); |