< prev index next >

test/jdk/javax/swing/plaf/aqua/CustomComboBoxFocusTest.java

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

*** 25,36 **** * @test * @key headful * @bug 8073001 8081764 * @summary Test verifies that combo box with custom editor renders * focus ring around arrow button correctly. ! * @library /lib/testlibrary ! * @build jdk.testlibrary.OSInfo * @run main CustomComboBoxFocusTest */ import java.awt.AWTException; import java.awt.Component; --- 25,36 ---- * @test * @key headful * @bug 8073001 8081764 * @summary Test verifies that combo box with custom editor renders * focus ring around arrow button correctly. ! * @library /test/lib ! * @build jdk.test.lib.Platform * @run main CustomComboBoxFocusTest */ import java.awt.AWTException; import java.awt.Component;
*** 52,69 **** import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingUtilities; ! import jdk.testlibrary.OSInfo; public class CustomComboBoxFocusTest { private static CustomComboBoxFocusTest test = null; public static void main(String[] args) { ! if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { System.out.println("Only Mac platform test. Test is skipped for other OS."); return; } try { --- 52,70 ---- import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.JTextField; import javax.swing.SwingUtilities; ! ! import jdk.test.lib.Platform; public class CustomComboBoxFocusTest { private static CustomComboBoxFocusTest test = null; public static void main(String[] args) { ! if (!Platform.isOSX()) { System.out.println("Only Mac platform test. Test is skipped for other OS."); return; } try {
< prev index next >