<AWT Dev> [11] JDK-8198690: Multiple failures in java/awt/Window/ShapedAndTranslucentWindows

shashidhara veerabhadraiah shashidhara.veerabhadraiah at oracle.com
Mon Feb 26 10:10:34 UTC 2018

Hi All, Please review a test fix for the following bug:

      Bug: https://bugs.openjdk.java.net/browse/JDK-8198690

      Webrev: http://cr.openjdk.java.net/~sveerabhadra/8198690/webrev.00/

Summary: Certain tests under the folder java/awt/Window/ShapedAndTranslucentWindows fails due to color comparison between expected and actual one. These tests fails only on MacOS. These are the tests that fails for the color comparison:
	1.	java/awt/Window/ShapedAndTranslucentWindows/StaticallyShaped.java
        2.     java/awt/Window/ShapedAndTranslucentWindows/Shaped.java
        3.     java/awt/Window/ShapedAndTranslucentWindows/ShapedTranslucent.java

Certain lenience is made for the color comparison logic by adding certain tolerance band for the same. The color difference varies from a value of 5 to 40, hence chosen the maximum out of this difference. I had tried delays and other syncing methods but all fails. Please let me know if there is any better logic to avoid tolerance based color comparison.

Thanks and regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20180226/cfc8ba7a/attachment.html>

More information about the awt-dev mailing list