< prev index next >

test/jdk/javax/swing/JPopupMenu/7154841/bug7154841.java

Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke

*** 25,45 **** * @test * @key headful * @bug 7154841 * @summary JPopupMenu is overlapped by a Dock on Mac OS X * @author Petr Pchelko ! * @library ../../../../lib/testlibrary ! * @build ExtendedRobot jdk.testlibrary.OSInfo * @run main bug7154841 */ import java.awt.*; import javax.swing.*; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.util.concurrent.atomic.AtomicReference; ! import jdk.testlibrary.OSInfo; public class bug7154841 { private static final int STEP = 10; --- 25,46 ---- * @test * @key headful * @bug 7154841 * @summary JPopupMenu is overlapped by a Dock on Mac OS X * @author Petr Pchelko ! * @library /test/lib ! * @build ExtendedRobot jdk.test.lib.Platform * @run main bug7154841 */ import java.awt.*; import javax.swing.*; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionAdapter; import java.util.concurrent.atomic.AtomicReference; ! ! import jdk.test.lib.Platform; public class bug7154841 { private static final int STEP = 10;
*** 66,76 **** frame.setBounds(screenBounds.get()); frame.setVisible(true); } public static void main(String[] args) throws Exception { ! if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { return; // Test only for Mac OS X } try { ExtendedRobot r = new ExtendedRobot(); --- 67,77 ---- frame.setBounds(screenBounds.get()); frame.setVisible(true); } public static void main(String[] args) throws Exception { ! if (!Platform.isOSX()) { return; // Test only for Mac OS X } try { ExtendedRobot r = new ExtendedRobot();
< prev index next >