< prev index next >
test/jdk/java/awt/Choice/ResizeAutoClosesChoice/ResizeAutoClosesChoice.java
Print this page
rev 51542 : 8210039: move OSInfo to top level testlibrary
Reviewed-by: duke
@@ -24,19 +24,19 @@
@test
@key headful
@bug 6399679
@summary Choice is not invalidated when the frame gets resized programmatically when the drop-down is visible
@author andrei.dmitriev area=awt.choice
- @library ../../../../lib/testlibrary
- @build jdk.testlibrary.OSInfo
+ @library /test/lib
+ @build jdk.test.lib.Platform
@run main ResizeAutoClosesChoice
*/
import java.awt.*;
import java.awt.event.*;
-import jdk.testlibrary.OSInfo;
+import jdk.test.lib.Platform;
public class ResizeAutoClosesChoice
{
static Frame frame = new Frame("Test Frame");
static Choice choice1 = new Choice();
@@ -44,11 +44,11 @@
static Point pt;
static String passed = null;
static Button button = new Button("This button causes Frame to be resized on pack()");
public static void main(String args[]) throws Exception
{
- if(OSInfo.getOSType().equals(OSInfo.OSType.MACOSX)) {
+ if (Platform.isOSX()) {
System.out.println("Not for OS OX");
return;
}
choice1.setForeground(Color.red);
< prev index next >