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

test javax/swing/JSplitPane/4885629/bug4885629.java fails on windows hidpi

    XMLWordPrintable

Details

    Backports

      Description

        test/jdk/javax/swing/JSplitPane/4885629/bug4885629.java fails consistently
        on Windows hidpi at 150%. It is only seen on Windows because only there
        do we allow fractional scales.

        The test looks at the rectangle which is the split pane divider checking the colour where the divider is a horizontal line making sure it does not bleed vertically to paint the top or bottom edges.

        The problem however is an unexpected color not at the top or the bottom but on the left / right due to rounding under fractional scales.
        So a simple fix is to skip the leftmost + rightmost pixel and the test still tests what it is meant to test and then passes on hi-dpi.

        Attachments

          Issue Links

            Activity

              People

                prr Philip Race
                prr Philip Race
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: