8196092: javax/swing/JComboBox/8032878/bug8032878.java fails
Reviewed-by: serb, pbansal
This commit is contained in:
parent
c30fff7c32
commit
2ee795d9e4
@ -738,7 +738,6 @@ javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
|
||||
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
||||
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
||||
javax/swing/AbstractButton/6711682/bug6711682.java 8060765 windows-all,macosx-all
|
||||
javax/swing/JComboBox/8032878/bug8032878.java 8196092,8196439 windows-all,macosx-all,linux-all
|
||||
javax/swing/JComboBox/8072767/bug8072767.java 8196093 windows-all,macosx-all
|
||||
javax/swing/JFileChooser/4524490/bug4524490.java 8042380 generic-all
|
||||
javax/swing/JFileChooser/6396844/TwentyThousandTest.java 8198003 generic-all
|
||||
|
@ -28,9 +28,6 @@
|
||||
* @summary Checks that JComboBox as JTable cell editor processes key events
|
||||
* even where setSurrendersFocusOnKeystroke flag in JTable is false and
|
||||
* that it does not lose the first key press where the flag is true.
|
||||
* @library ../../regtesthelpers
|
||||
* @build Util
|
||||
* @author Alexey Ivanov
|
||||
* @run main bug8032878
|
||||
*/
|
||||
|
||||
@ -86,6 +83,7 @@ public class bug8032878 implements Runnable {
|
||||
|
||||
frame.pack();
|
||||
frame.setVisible(true);
|
||||
frame.setLocationRelativeTo(null);
|
||||
}
|
||||
|
||||
private void test(final boolean flag) throws Exception {
|
||||
@ -93,11 +91,13 @@ public class bug8032878 implements Runnable {
|
||||
surrender = flag;
|
||||
SwingUtilities.invokeAndWait(this);
|
||||
|
||||
robot.waitForIdle();
|
||||
robot.delay(1000);
|
||||
runTest();
|
||||
checkResult();
|
||||
} finally {
|
||||
if (frame != null) {
|
||||
frame.dispose();
|
||||
SwingUtilities.invokeAndWait(() -> frame.dispose());
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -105,12 +105,20 @@ public class bug8032878 implements Runnable {
|
||||
private void runTest() throws Exception {
|
||||
robot.waitForIdle();
|
||||
// Select 'one'
|
||||
Util.hitKeys(robot, KeyEvent.VK_TAB);
|
||||
robot.keyPress(KeyEvent.VK_TAB);
|
||||
robot.keyRelease(KeyEvent.VK_TAB);
|
||||
robot.waitForIdle();
|
||||
Util.hitKeys(robot, KeyEvent.VK_1);
|
||||
Util.hitKeys(robot, KeyEvent.VK_2);
|
||||
Util.hitKeys(robot, KeyEvent.VK_3);
|
||||
Util.hitKeys(robot, KeyEvent.VK_ENTER);
|
||||
robot.keyPress(KeyEvent.VK_1);
|
||||
robot.keyRelease(KeyEvent.VK_1);
|
||||
robot.waitForIdle();
|
||||
robot.keyPress(KeyEvent.VK_2);
|
||||
robot.keyRelease(KeyEvent.VK_2);
|
||||
robot.waitForIdle();
|
||||
robot.keyPress(KeyEvent.VK_3);
|
||||
robot.keyRelease(KeyEvent.VK_3);
|
||||
robot.waitForIdle();
|
||||
robot.keyPress(KeyEvent.VK_ENTER);
|
||||
robot.keyRelease(KeyEvent.VK_ENTER);
|
||||
robot.waitForIdle();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user