8196302: javax/swing/JFileChooser/8041694/bug8041694.java
Reviewed-by: serb
This commit is contained in:
parent
f61ce32770
commit
4c4b8f4de2
@ -745,7 +745,6 @@ javax/swing/JTable/4235420/bug4235420.java 8079127 generic-all
|
|||||||
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
|
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
|
||||||
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
|
||||||
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
javax/swing/JTree/4633594/JTreeFocusTest.java 8173125 macosx-all
|
||||||
javax/swing/JFileChooser/8041694/bug8041694.java 8196302 windows-all,macosx-all
|
|
||||||
javax/swing/AbstractButton/6711682/bug6711682.java 8060765 windows-all,macosx-all
|
javax/swing/AbstractButton/6711682/bug6711682.java 8060765 windows-all,macosx-all
|
||||||
javax/swing/Action/8133039/bug8133039.java 8196089 windows-all,macosx-all
|
javax/swing/Action/8133039/bug8133039.java 8196089 windows-all,macosx-all
|
||||||
javax/swing/JComboBox/6559152/bug6559152.java 8196090 windows-all,macosx-all
|
javax/swing/JComboBox/6559152/bug6559152.java 8196090 windows-all,macosx-all
|
||||||
|
@ -57,6 +57,7 @@ public class bug8041694 {
|
|||||||
// Set Metal L&F to make the test compatible with OS X.
|
// Set Metal L&F to make the test compatible with OS X.
|
||||||
UIManager.setLookAndFeel(new MetalLookAndFeel());
|
UIManager.setLookAndFeel(new MetalLookAndFeel());
|
||||||
Robot robot = new Robot();
|
Robot robot = new Robot();
|
||||||
|
robot.setAutoDelay(100);
|
||||||
|
|
||||||
dir1 = Files.createTempDirectory("bug8041694").toFile();
|
dir1 = Files.createTempDirectory("bug8041694").toFile();
|
||||||
if (Platform.isWindows()) {
|
if (Platform.isWindows()) {
|
||||||
@ -83,15 +84,17 @@ public class bug8041694 {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
robot.setAutoDelay(50);
|
|
||||||
robot.delay(1000);
|
robot.delay(1000);
|
||||||
robot.waitForIdle();
|
robot.waitForIdle();
|
||||||
robot.keyPress(KeyEvent.VK_D);
|
robot.keyPress(KeyEvent.VK_D);
|
||||||
robot.keyRelease(KeyEvent.VK_D);
|
robot.keyRelease(KeyEvent.VK_D);
|
||||||
|
robot.waitForIdle();
|
||||||
robot.keyPress(KeyEvent.VK_SPACE);
|
robot.keyPress(KeyEvent.VK_SPACE);
|
||||||
robot.keyRelease(KeyEvent.VK_SPACE);
|
robot.keyRelease(KeyEvent.VK_SPACE);
|
||||||
|
robot.waitForIdle();
|
||||||
robot.keyPress(KeyEvent.VK_ENTER);
|
robot.keyPress(KeyEvent.VK_ENTER);
|
||||||
robot.keyRelease(KeyEvent.VK_ENTER);
|
robot.keyRelease(KeyEvent.VK_ENTER);
|
||||||
|
robot.waitForIdle();
|
||||||
|
|
||||||
fChooserClosedSignal.await();
|
fChooserClosedSignal.await();
|
||||||
if (selectedDir == null) {
|
if (selectedDir == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user