Skip to content

Commit

Permalink
8286786: [macos] javax/swing/JInternalFrame/8146321/JInternalFrameIco…
Browse files Browse the repository at this point in the history
…nTest.java still fails

Reviewed-by: serb, dnguyen
  • Loading branch information
prsadhuk committed May 24, 2022
1 parent c1db70d commit a5caffd
Showing 1 changed file with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,14 +268,12 @@ private static boolean bufferedImagesEqual(
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;
}
}
}
Expand Down

1 comment on commit a5caffd

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.