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