< prev index next >

test/jdk/java/awt/TrayIcon/DblClickActionEventTest/DblClickActionEventTest.java

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

@@ -35,11 +35,11 @@
 
 import java.awt.*;
 import java.awt.event.*;
 import java.awt.image.*;
 
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
 import test.java.awt.regtesthelpers.Sysout;
 
 public class DblClickActionEventTest extends Applet {
     boolean traySupported;
 

@@ -48,11 +48,11 @@
 
         String[] instructions;
         traySupported = SystemTray.isSupported();
         if (traySupported) {
             String clickInstruction;
-            if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
+            if (Platform.isOSX()) {
                 clickInstruction = "right";
             } else {
                 clickInstruction = "left";
             }
             instructions = new String[]{
< prev index next >