Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8218827

[TEST_BUG] Use BufferedImage as the golden image for VolatileImage in BasicStroke tests

XMLWordPrintable

    • 2d

      In case VolatileImage uses IndexColorModel, the colours in the image may not match the ones we expect. We can use BufferedImage with the same colour model as the golden image to validate VolatileImage looks as expected.

      The affected tests:
      java/awt/BasicStroke/DashOffset.java
      java/awt/BasicStroke/DashScaleMinWidth.java
      java/awt/BasicStroke/DashZeroWidth.java


      It was suggested in the code review for JDK-8218682 and JDK-8198411:
      http://mail.openjdk.java.net/pipermail/2d-dev/2019-February/009850.html
      http://mail.openjdk.java.net/pipermail/2d-dev/2019-February/009852.html
      http://mail.openjdk.java.net/pipermail/2d-dev/2019-February/009854.html

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: