8286786: [macos] javax/swing/JInternalFrame/8146321/JInternalFrameIconTest.java still fails

Reviewed-by: serb, dnguyen
This commit is contained in:
Prasanta Sadhukhan 2022-05-24 04:32:55 +00:00
parent c1db70d827
commit a5caffd4a5

@ -268,14 +268,12 @@ public class JInternalFrameIconTest {
int red2 = (color2 >> 16) & 0x000000FF;
int green2 = (color2 >> 8) & 0x000000FF;
int blue2 = (color2) & 0x000000FF;
if (red1 != red2 || green1 != green2 || blue1 != blue2) {
++mismatchCounter;
if ((Math.abs(red1 - red2) > colorTolerance)
|| (Math.abs(green1 - green2) > colorTolerance)
|| (Math.abs(blue1 - blue2) > colorTolerance)) {
if ((Math.abs(red1 - red2) > colorTolerance)
|| (Math.abs(green1 - green2) > colorTolerance)
|| (Math.abs(blue1 - blue2) > colorTolerance)) {
flag = false;
}
++mismatchCounter;
flag = false;
}
}
}