author | alexsch |
Fri, 15 Mar 2013 17:02:24 +0400 | |
changeset 16464 | 7ea81d352fd5 |
child 28071 | 3acb75b8df45 |
permissions | -rw-r--r-- |
16464
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
1 |
/* |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
2 |
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
4 |
* |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
8 |
* |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
9 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
10 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
11 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
12 |
* version 2 for more details (a copy is included in the LICENSE file that |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
13 |
* accompanied this code). |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
14 |
* |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
15 |
* You should have received a copy of the GNU General Public License version |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
16 |
* 2 along with this work; if not, write to the Free Software Foundation, |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
17 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
18 |
* |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
19 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
20 |
* or visit www.oracle.com if you need additional information or have any |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
21 |
* questions. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
22 |
*/ |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
23 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
24 |
import java.awt.*; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
25 |
import java.awt.event.*; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
26 |
import javax.swing.*; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
27 |
import sun.awt.SunToolkit; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
28 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
29 |
/** |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
30 |
* @test |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
31 |
* @bug 4670486 |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
32 |
* @author Mark Davidson |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
33 |
* @summary Regression: Popup menu bindings doesn't work when a default button has been defined. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
34 |
* @library ../../regtesthelpers |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
35 |
* @build Util |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
36 |
* @run main bug4670486 |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
37 |
*/ |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
38 |
public class bug4670486 { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
39 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
40 |
public static volatile boolean actionExpected = false; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
41 |
public static volatile boolean actionRecieved = false; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
42 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
43 |
private static JMenuBar createMenuBar() { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
44 |
JMenuBar menubar = new JMenuBar(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
45 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
46 |
// Control with unique menu |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
47 |
JMenu menu = new JMenu("Unique Menu"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
48 |
menu.setMnemonic('U'); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
49 |
menu.add(createMenuItem("Sunday", 'S')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
50 |
menu.add(createMenuItem("Monday", 'M')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
51 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
52 |
menu.add(createMenuItem("Tuesday", 'T')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
53 |
menu.add(createMenuItem("Wednesday", 'W')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
54 |
menu.add(createMenuItem("Thursday", 'U')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
55 |
menu.add(createMenuItem("Friday", 'F')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
56 |
menu.add(createMenuItem("Saturday", 'A')); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
57 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
58 |
menubar.add(menu); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
59 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
60 |
return menubar; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
61 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
62 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
63 |
private static JPanel createPanel(JFrame frame) { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
64 |
JPanel panel = new JPanel(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
65 |
JButton button = new JButton("Button"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
66 |
JButton button2 = new JButton("Button 2"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
67 |
JButton button3 = new JButton("Button 3"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
68 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
69 |
JRootPane root = frame.getRootPane(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
70 |
root.setDefaultButton(button); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
71 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
72 |
panel.add(button); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
73 |
panel.add(button2); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
74 |
panel.add(button3); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
75 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
76 |
return panel; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
77 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
78 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
79 |
/** |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
80 |
* Creates and returns the menu item. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
81 |
*/ |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
82 |
private static JMenuItem createMenuItem(String name, char mnemonic) { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
83 |
JMenuItem menuItem = new JMenuItem(name, mnemonic); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
84 |
menuItem.addActionListener(new ActionListener() { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
85 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
86 |
@Override |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
87 |
public void actionPerformed(ActionEvent evt) { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
88 |
actionRecieved = true; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
89 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
90 |
}); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
91 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
92 |
return menuItem; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
93 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
94 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
95 |
public static void checkAction() { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
96 |
if (actionRecieved == true) { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
97 |
actionRecieved = false; |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
98 |
} else { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
99 |
throw new RuntimeException("Action has not been received"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
100 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
101 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
102 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
103 |
public static void main(String[] args) throws Throwable { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
104 |
SunToolkit toolkit = (SunToolkit) Toolkit.getDefaultToolkit(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
105 |
Robot robot = new Robot(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
106 |
robot.setAutoDelay(250); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
107 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
108 |
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
109 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
110 |
SwingUtilities.invokeAndWait(new Runnable() { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
111 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
112 |
@Override |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
113 |
public void run() { |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
114 |
JFrame frame = new JFrame("Test"); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
115 |
frame.setContentPane(createPanel(frame)); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
116 |
frame.setJMenuBar(createMenuBar()); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
117 |
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
118 |
frame.pack(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
119 |
frame.setVisible(true); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
120 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
121 |
}); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
122 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
123 |
toolkit.realSync(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
124 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
125 |
// Change the default button to |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
126 |
// force a call to BasicRootPaneUI.updateDefaultButtonBindings() |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
127 |
Util.hitKeys(robot, KeyEvent.VK_TAB); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
128 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
129 |
// If the bug exists, then as soon as the menu appears, |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
130 |
// the VK_ENTER, VK_DOWN, VK_UP and VK_ESC will have no |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
131 |
// effect. |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
132 |
Util.hitMnemonics(robot, KeyEvent.VK_U); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
133 |
Util.hitKeys(robot, KeyEvent.VK_ENTER); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
134 |
toolkit.realSync(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
135 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
136 |
checkAction(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
137 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
138 |
Util.hitMnemonics(robot, KeyEvent.VK_U); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
139 |
Util.hitKeys(robot, KeyEvent.VK_DOWN); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
140 |
Util.hitKeys(robot, KeyEvent.VK_ENTER); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
141 |
toolkit.realSync(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
142 |
|
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
143 |
checkAction(); |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
144 |
} |
7ea81d352fd5
8009221: [macosx] Two closed/javax/swing regression tests fail on MacOSX.
alexsch
parents:
diff
changeset
|
145 |
} |