Skip to content
Permalink
Browse files
8194126: Regression automated Test '/open/test/jdk/javax/swing/JColor…
…Chooser/Test7194184.java' fails

Reviewed-by: serb, trebari
  • Loading branch information
prsadhuk committed Oct 17, 2020
1 parent ce1aac1 commit 0b3e6c51bae47421d2fa3520b3eb6af22c668cc4
Showing with 16 additions and 10 deletions.
  1. +0 −1 test/jdk/ProblemList.txt
  2. +16 −9 test/jdk/javax/swing/JColorChooser/Test7194184.java
@@ -741,7 +741,6 @@ javax/swing/JWindow/ShapedAndTranslucentWindows/TranslucentJComboBox.java 802462
javax/swing/JComboBox/8033069/bug8033069ScrollBar.java 8163367 generic-all
javax/swing/JColorChooser/Test6827032.java 8197825 windows-all
javax/swing/JColorChooser/Test6541987.java 8143021 windows-all,linux-all,macosx-all
javax/swing/JColorChooser/Test7194184.java 8194126 linux-all,macosx-all
javax/swing/JTable/4235420/bug4235420.java 8079127 generic-all
javax/swing/JSplitPane/4201995/bug4201995.java 8079127 generic-all
javax/swing/JTree/DnD/LastNodeLowerHalfDrop.java 8159131 linux-all
@@ -52,17 +52,23 @@
private static Robot robot;

public static void main(String[] args) throws Exception {
robot = new Robot();
robot.setAutoWaitForIdle(true);
createUI();
accessRecentSwatch();
runRobot();
testColorChooser();
cleanUpUI();
try {
robot = new Robot();
robot.setAutoDelay(100);
createUI();
robot.waitForIdle();
robot.delay(1000);
accessRecentSwatch();
robot.waitForIdle();
runRobot();
testColorChooser();
} finally {
cleanUpUI();
}
}

private static void createUI() throws Exception {
SwingUtilities.invokeLater(new Runnable() {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
String title = getClass().getName();
@@ -71,12 +77,13 @@ public void run() {
frame.add(colorChooser);
frame.pack();
frame.setVisible(true);
frame.setLocationRelativeTo(null);
}
});
}

private static void accessRecentSwatch() throws Exception {
SwingUtilities.invokeLater(new Runnable() {
SwingUtilities.invokeAndWait(new Runnable() {
@Override
public void run() {
Component recentSwatchPanel = Util.findSubComponent(colorChooser, "RecentSwatchPanel");

1 comment on commit 0b3e6c5

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 0b3e6c5 Oct 17, 2020

Please sign in to comment.