Skip to content

Commit

Permalink
8294254: [macOS] javax/swing/plaf/aqua/CustomComboBoxFocusTest.java f…
Browse files Browse the repository at this point in the history
…ailure

Reviewed-by: jdv, achung
  • Loading branch information
Damon Nguyen authored and jayathirthrao committed Oct 18, 2022
1 parent 490fcd0 commit 358ac07
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
Expand Up @@ -470,12 +470,12 @@ protected Rectangle rectangleForCurrentValue() {

if (comboBox.getComponentOrientation().isLeftToRight()) {
return new Rectangle(insets.left, insets.top + midHeight,
width - (insets.left + insets.right + buttonSize) + 4,
width - (insets.left + insets.right + buttonSize) + 3,
height - (insets.top + insets.bottom));
}
else {
return new Rectangle(insets.left + buttonSize, insets.top + midHeight,
width - (insets.left + insets.right + buttonSize) + 4,
width - (insets.left + insets.right + buttonSize) + 3,
height - (insets.top + insets.bottom));
}
}
Expand Down
1 change: 0 additions & 1 deletion test/jdk/ProblemList.txt
Expand Up @@ -662,7 +662,6 @@ javax/swing/JFileChooser/6798062/bug6798062.java 8146446 windows-all
javax/swing/JPopupMenu/4870644/bug4870644.java 8194130 macosx-all,linux-all
javax/swing/dnd/8139050/NativeErrorsInTableDnD.java 8202765 macosx-all,linux-all
javax/swing/JEditorPane/6917744/bug6917744.java 8213124 macosx-all
javax/swing/plaf/aqua/CustomComboBoxFocusTest.java 8294254 macosx-all
javax/swing/JRadioButton/4314194/bug4314194.java 8295006 linux-all

# Several tests which fail on some hidpi systems/macosx12-aarch64 system
Expand Down
6 changes: 3 additions & 3 deletions test/jdk/javax/swing/plaf/aqua/CustomComboBoxFocusTest.java
Expand Up @@ -28,12 +28,12 @@
* @requires (os.family == "mac")
* @summary Test verifies that combo box with custom editor renders
* focus ring around arrow button correctly.
* @run main CustomComboBoxFocusTest
* @run main/othervm -Dsun.java2d.uiScale=1 CustomComboBoxFocusTest
*/

import java.awt.AWTException;
import java.awt.Component;
import java.awt.Color;
import java.awt.Component;
import java.awt.GridLayout;
import java.awt.Point;
import java.awt.Rectangle;
Expand All @@ -44,8 +44,8 @@
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.concurrent.CountDownLatch;

import javax.imageio.ImageIO;
import javax.swing.ComboBoxEditor;
import javax.swing.JComboBox;
Expand Down

0 comments on commit 358ac07

Please sign in to comment.