equal
deleted
inserted
replaced
37 * @bug 8024185 |
37 * @bug 8024185 |
38 * @summary Native Mac OS X full screen does not work after showing the splash |
38 * @summary Native Mac OS X full screen does not work after showing the splash |
39 * @library ../ |
39 * @library ../ |
40 * @library ../../../../lib/testlibrary |
40 * @library ../../../../lib/testlibrary |
41 * @modules java.desktop/sun.awt |
41 * @modules java.desktop/sun.awt |
|
42 * java.desktop/com.apple.eawt |
42 * @build jdk.testlibrary.OSInfo |
43 * @build jdk.testlibrary.OSInfo |
43 * @build GenerateTestImage |
44 * @build GenerateTestImage |
44 * @run main GenerateTestImage |
45 * @run main GenerateTestImage |
45 * @author Petr Pchelko area=awt.event |
46 * @author Petr Pchelko area=awt.event |
46 * @run main/othervm -splash:test.png FullScreenAfterSplash |
47 * @run main/othervm -splash:test.png FullScreenAfterSplash |
59 return; |
60 return; |
60 } |
61 } |
61 try { |
62 try { |
62 //Move the mouse out, because it could interfere with the test. |
63 //Move the mouse out, because it could interfere with the test. |
63 Robot r = new Robot(); |
64 Robot r = new Robot(); |
|
65 r.setAutoDelay(50); |
64 r.mouseMove(0, 0); |
66 r.mouseMove(0, 0); |
65 sleep(); |
67 sleep(); |
66 |
68 |
67 SwingUtilities.invokeAndWait(FullScreenAfterSplash::createAndShowGUI); |
69 SwingUtilities.invokeAndWait(FullScreenAfterSplash::createAndShowGUI); |
68 sleep(); |
70 sleep(); |