< 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,42 **** @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 @run main ResizeAutoClosesChoice */ import java.awt.*; import java.awt.event.*; ! import jdk.testlibrary.OSInfo; public class ResizeAutoClosesChoice { static Frame frame = new Frame("Test Frame"); static Choice choice1 = new Choice(); --- 24,42 ---- @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 /test/lib ! @build jdk.test.lib.Platform @run main ResizeAutoClosesChoice */ import java.awt.*; import java.awt.event.*; ! import jdk.test.lib.Platform; public class ResizeAutoClosesChoice { static Frame frame = new Frame("Test Frame"); static Choice choice1 = new Choice();
*** 44,54 **** 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)) { System.out.println("Not for OS OX"); return; } choice1.setForeground(Color.red); --- 44,54 ---- 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 (Platform.isOSX()) { System.out.println("Not for OS OX"); return; } choice1.setForeground(Color.red);
< prev index next >