8295007: javax/swing/JRadioButton/4314194/bug4314194.java fails in mach5 for WIndowLookAndFeel

Reviewed-by: aivanov, tr
This commit is contained in:
Prasanta Sadhukhan 2022-10-10 11:51:21 +00:00
parent 6ed74ef654
commit 269252aa3d
2 changed files with 4 additions and 2 deletions

View File

@ -664,6 +664,7 @@ 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
java/awt/Window/8159168/SetShapeTest.java 8274106 macosx-aarch64

View File

@ -72,6 +72,7 @@ public class bug4314194 {
totalPixels++;
}
System.out.println("correctColoredPixels " + correctColoredPixels + " totalPixels " + totalPixels);
return ((double)correctColoredPixels/totalPixels*100) >= tolerance;
}
@ -90,8 +91,8 @@ public class bug4314194 {
UIManager.getDefaults().put("CheckBox.disabledText", checkboxColor);
UIManager.getDefaults().put("RadioButton.disabledText", radioButtonColor);
checkBox = new JCheckBox("WWWWW");
radioButton = new JRadioButton("WWWWW");
checkBox = new JCheckBox("\u2588".repeat(5));
radioButton = new JRadioButton("\u2588".repeat(5));
checkBox.setFont(checkBox.getFont().deriveFont(50.0f));
radioButton.setFont(radioButton.getFont().deriveFont(50.0f));
checkBox.setEnabled(false);