< 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,20 +25,21 @@
 import java.awt.Toolkit;
 import java.awt.image.BufferedImage;
 
 import javax.swing.JFrame;
 import javax.swing.SwingUtilities;
-import jdk.testlibrary.OSInfo;
+
+import jdk.test.lib.Platform;
 
 /**
  * @test
  * @key headful
  * @bug 7124513
  * @summary We should support NSTexturedBackgroundWindowMask style on OSX.
  * @author Sergey Bylokhov
- * @library ../../../../lib/testlibrary
- * @build ExtendedRobot jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build ExtendedRobot jdk.test.lib.Platform
  * @run main NSTexturedJFrame
  */
 
 public final class NSTexturedJFrame {
 

@@ -49,11 +50,11 @@
     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) {
+        if (!Platform.isOSX()) {
             System.out.println("This test is for OSX, considered passed.");
             return;
         }
         robot = new ExtendedRobot();
         robot.setAutoDelay(50);
< prev index next >