|
21 | 21 | * questions. |
22 | 22 | */ |
23 | 23 |
|
24 | | -/* |
25 | | - @test |
26 | | - @key headful |
27 | | - @bug 6190768 6190778 |
28 | | - @summary Tests that triggering events on AWT list by pressing CTRL + HOME, |
29 | | - CTRL + END, PG-UP, PG-DOWN similar Motif behavior |
30 | | - @library /test/lib |
31 | | - @build jdk.test.lib.Platform |
32 | | - @run main KeyEventsTest |
33 | | -*/ |
34 | | - |
35 | 24 | import java.awt.BorderLayout; |
36 | 25 | import java.awt.EventQueue; |
37 | 26 | import java.awt.KeyboardFocusManager; |
|
50 | 39 |
|
51 | 40 | import jdk.test.lib.Platform; |
52 | 41 |
|
| 42 | +/* |
| 43 | + * @test |
| 44 | + * @key headful |
| 45 | + * @bug 6190768 6190778 |
| 46 | + * @requires os.family != "mac" |
| 47 | + * @summary Tests that triggering events on AWT list by pressing CTRL + HOME, |
| 48 | + * CTRL + END, PG-UP, PG-DOWN similar Motif behavior |
| 49 | + * @library /test/lib |
| 50 | + * @build jdk.test.lib.Platform |
| 51 | + * @run main KeyEventsTest |
| 52 | + */ |
53 | 53 | public class KeyEventsTest { |
54 | 54 | TestState currentState; |
55 | 55 | final Object LOCK = new Object(); |
@@ -261,13 +261,7 @@ private void test(TestState currentState) throws Exception { |
261 | 261 |
|
262 | 262 | private void doTest() throws Exception { |
263 | 263 |
|
264 | | - boolean isWin = false; |
265 | | - if (Platform.isWindows()) { |
266 | | - isWin = true; |
267 | | - } else if (Platform.isOSX()) { |
268 | | - System.out.println("Not for OS X"); |
269 | | - return; |
270 | | - } |
| 264 | + boolean isWin = Platform.isWindows(); |
271 | 265 |
|
272 | 266 | System.out.println("multiple? selectedMoved? ?scrollMoved keyID? template? action?"); |
273 | 267 | test(new TestState(false, false, false, KeyEvent.VK_PAGE_UP, isWin?false:false)); |
|
0 commit comments