< prev index next >

test/jdk/java/awt/Choice/PopupPosTest/PopupPosTest.java

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

@@ -24,26 +24,26 @@
 /*
   test
   @bug 5044150
   @summary Tests that pupup doesn't popdown if no space to display under
   @author andrei.dmitriev area=awt.choice
-  @library ../../../../lib/testlibrary
-  @build jdk.testlibrary.OSInfo
+  @library /test/lib
+  @build jdk.test.lib.Platform
   @run applet PopupPosTest.html
 */
 
 import java.applet.Applet;
 import java.awt.*;
 import java.awt.event.*;
 
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
 
 public class PopupPosTest extends Applet
 {
     public void start ()
     {
-        if(OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
+        if (Platform.isOSX()) {
             // On OS X, popup isn't under the mouse
             return;
         }
         Frame frame = new TestFrame();
     }
< prev index next >