< prev index next >

test/jdk/java/awt/event/KeyEvent/DeadKey/DeadKeyMacOSXInputText.java

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

*** 25,53 **** * @test * @key headful * @bug 7199180 * @summary [macosx] Dead keys handling for input methods * @author alexandr.scherbatiy area=awt.event ! * @library ../../../../../lib/testlibrary ! * @build jdk.testlibrary.OSInfo * @run main DeadKeyMacOSXInputText */ import java.awt.*; import java.awt.event.*; import java.awt.event.KeyEvent; import javax.swing.JTextField; ! import jdk.testlibrary.OSInfo; public class DeadKeyMacOSXInputText { private static volatile int state = 0; public static void main(String[] args) throws Exception { ! if (OSInfo.getOSType() != OSInfo.OSType.MACOSX) { return; } Robot robot = new Robot(); robot.setAutoDelay(50); --- 25,53 ---- * @test * @key headful * @bug 7199180 * @summary [macosx] Dead keys handling for input methods * @author alexandr.scherbatiy area=awt.event ! * @library /test/lib ! * @build jdk.test.lib.Platform * @run main DeadKeyMacOSXInputText */ import java.awt.*; import java.awt.event.*; import java.awt.event.KeyEvent; import javax.swing.JTextField; ! import jdk.test.lib.Platform; public class DeadKeyMacOSXInputText { private static volatile int state = 0; public static void main(String[] args) throws Exception { ! if (!Platform.isOSX()) { return; } Robot robot = new Robot(); robot.setAutoDelay(50);
< prev index next >