< prev index next >

test/jdk/java/awt/Frame/MaximizedByPlatform/MaximizedByPlatform.java

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

@@ -25,25 +25,25 @@
  * @test
  * @key headful
  * @bug 8026143
  * @summary [macosx] Maximized state could be inconsistent between peer and frame
  * @author Petr Pchelko
- * @library ../../../../lib/testlibrary
- * @build jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build jdk.test.lib.Platform
  * @run main MaximizedByPlatform
  */
 
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
 
 import java.awt.*;
 
 public class MaximizedByPlatform {
     private static Frame frame;
     private static Rectangle availableScreenBounds;
 
     public static void main(String[] args) {
-        if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) {
+        if (!Platform.isOSX()) {
             // Test only for macosx. Pass
             return;
         }
 
         Robot robot;
< prev index next >