test/javax/swing/JPopupMenu/6827786/bug6827786.java

Print this page

        

*** 25,37 **** --- 25,40 ---- * @test * @bug 6827786 * @summary Tests duplicate mnemonics * @author Peter Zhelezniakov * @library ../../regtesthelpers + * @library ../../../../lib/testlibrary + * @build jdk.testlibrary.OSInfo * @build Util * @run main bug6827786 */ + import jdk.testlibrary.OSInfo; import java.awt.*; import java.awt.event.KeyEvent; import javax.swing.*; public class bug6827786 {
*** 61,71 **** robot.waitForIdle(); checkfocus(); // select menu ! if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.MACOSX) { Util.hitKeys(robot, KeyEvent.VK_CONTROL, KeyEvent.VK_ALT, KeyEvent.VK_F); } else { Util.hitKeys(robot, KeyEvent.VK_ALT, KeyEvent.VK_F); } // select submenu --- 64,74 ---- robot.waitForIdle(); checkfocus(); // select menu ! if (OSInfo.getOSType() == OSInfo.OSType.MACOSX) { Util.hitKeys(robot, KeyEvent.VK_CONTROL, KeyEvent.VK_ALT, KeyEvent.VK_F); } else { Util.hitKeys(robot, KeyEvent.VK_ALT, KeyEvent.VK_F); } // select submenu