< prev index next >

test/jdk/java/awt/Toolkit/ToolkitPropertyTest/bug7129133.java

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

@@ -24,20 +24,22 @@
 /*
  * @test
  * @bug 7129133
  * @summary [macosx] Accelerators are displayed as Meta instead of the Command symbol
  * @author leonid.romanov@oracle.com
- * @library ../../../../lib/testlibrary
- * @build jdk.testlibrary.OSInfo
+ * @library /test/lib
+ * @build jdk.test.lib.Platform
  * @run main bug7129133
  */
 
+import jdk.test.lib.Platform;
+
 import java.awt.*;
 
 public class bug7129133 {
     public static void main(String[] args) throws Exception {
-        if (jdk.testlibrary.OSInfo.getOSType() != jdk.testlibrary.OSInfo.OSType.MACOSX) {
+        if (!Platform.isOSX()) {
             System.out.println("This test is for MacOS only. Automatically passed on other platforms.");
             return;
         }
 
         Toolkit.getDefaultToolkit();
< prev index next >