<Swing Dev> [11] RFR JDK-7190978:javax/swing/JComponent/7154030/bug7154030.java fails on windows, mac

Semyon Sadetsky semyon.sadetsky at oracle.com
Thu Feb 22 19:50:49 UTC 2018


Hi Prasanta,

Can you clarify why on Linux the images are exactly the same but on 
other platforms they differ by +-20 in color distance?

--Semyon


On 02/22/2018 08:21 AM, Prasanta Sadhukhan wrote:
> Hi All,
>
> Please review a testbug fix for an issue whereby it seen that it fails 
> citing "failing to hide opaque button".
> It is seen that the test compares the buffered image strictly 
> pixel-by-pixel and even if it differs by 1,2 pixels it fails which is 
> what was happening here.
> Proposed fix is to make it more lenient by allowing a tolerance of 
> 20pixels difference in the comparison of 2 bufferedimage.
> It is verified on windows, mac.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-7190978
> webrev: http://cr.openjdk.java.net/~psadhukhan/7190978/webrev.00/
>
> Regards
> Prasanta




More information about the swing-dev mailing list