< prev index next >

test/jdk/java/awt/TrayIcon/8072769/bug8072769.java

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

@@ -25,25 +25,25 @@
    @bug 8072769
    @key headful
    @requires (os.family == "windows")
    @summary System tray icon title freezes java
    @author Semyon Sadetsky
-   @library ../../../../lib/testlibrary
-   @build jdk.testlibrary.OSInfo
+   @library /test/lib
+   @build jdk.test.lib.Platform
    @run main bug8072769
   */
 
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
 
 import javax.swing.*;
 import java.awt.*;
 import java.util.Arrays;
 
 public class bug8072769 {
 
     public static void main(String[] args) throws Exception {
-        if (OSInfo.getOSType() == OSInfo.OSType.WINDOWS) {
+        if (Platform.isWindows()) {
             if (SystemTray.isSupported()) {
                 test();
             } else {
                 System.out.println("SystemTray not supported. " +
                         "Test is skipped.");
< prev index next >