< prev index next >

test/jdk/javax/swing/JFrame/NSTexturedJFrame/NSTexturedJFrame.java

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

*** 25,44 **** import java.awt.Toolkit; import java.awt.image.BufferedImage; import javax.swing.JFrame; import javax.swing.SwingUtilities; ! import jdk.testlibrary.OSInfo; /** * @test * @key headful * @bug 7124513 * @summary We should support NSTexturedBackgroundWindowMask style on OSX. * @author Sergey Bylokhov ! * @library ../../../../lib/testlibrary ! * @build ExtendedRobot jdk.testlibrary.OSInfo * @run main NSTexturedJFrame */ public final class NSTexturedJFrame { --- 25,45 ---- import java.awt.Toolkit; import java.awt.image.BufferedImage; import javax.swing.JFrame; import javax.swing.SwingUtilities; ! ! import jdk.test.lib.Platform; /** * @test * @key headful * @bug 7124513 * @summary We should support NSTexturedBackgroundWindowMask style on OSX. * @author Sergey Bylokhov ! * @library /test/lib ! * @build ExtendedRobot jdk.test.lib.Platform * @run main NSTexturedJFrame */ public final class NSTexturedJFrame {
*** 49,59 **** private static volatile int step; private static JFrame frame; private static ExtendedRobot robot; public static void main(final String[] args) throws Exception { ! if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { System.out.println("This test is for OSX, considered passed."); return; } robot = new ExtendedRobot(); robot.setAutoDelay(50); --- 50,60 ---- private static volatile int step; private static JFrame frame; private static ExtendedRobot robot; public static void main(final String[] args) throws Exception { ! if (!Platform.isOSX()) { System.out.println("This test is for OSX, considered passed."); return; } robot = new ExtendedRobot(); robot.setAutoDelay(50);
< prev index next >