< prev index next >

test/jdk/java/awt/TrayIcon/DisposeInActionEventTest/DisposeInActionEventTest.java

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

@@ -36,11 +36,11 @@
 import java.applet.*;
 
 import java.awt.*;
 import java.awt.image.*;
 
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
 import test.java.awt.regtesthelpers.Sysout;
 
 public class DisposeInActionEventTest extends Applet {
     private boolean traySupported;
 

@@ -57,11 +57,11 @@
                     "The test cannot be run because SystemTray is not supported.",
                     "Simply press PASS button."
             };
         } else {
             String clickInstruction;
-            if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
+            if (Platform.isOSX()) {
                 clickInstruction = "right";
             } else {
                 clickInstruction = "left";
             }
             instructions = new String[]{
< prev index next >