< 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,46 **** import java.applet.*; import java.awt.*; import java.awt.image.*; ! import jdk.testlibrary.OSInfo; import test.java.awt.regtesthelpers.Sysout; public class DisposeInActionEventTest extends Applet { private boolean traySupported; --- 36,46 ---- import java.applet.*; import java.awt.*; import java.awt.image.*; ! import jdk.test.lib.Platform; import test.java.awt.regtesthelpers.Sysout; public class DisposeInActionEventTest extends Applet { private boolean traySupported;
*** 57,67 **** "The test cannot be run because SystemTray is not supported.", "Simply press PASS button." }; } else { String clickInstruction; ! if (OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) { clickInstruction = "right"; } else { clickInstruction = "left"; } instructions = new String[]{ --- 57,67 ---- "The test cannot be run because SystemTray is not supported.", "Simply press PASS button." }; } else { String clickInstruction; ! if (Platform.isOSX()) { clickInstruction = "right"; } else { clickInstruction = "left"; } instructions = new String[]{
< prev index next >