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

[TEST_BUG] Test javax/swing/text/FlowView/6318524/bug6318524.java never fails

XMLWordPrintable

        The test bug6318524.java is incorrect and it never fails.

        The paragraph of text in the test is not justified because it does not run along two lines of text. If line wrapping occurs, then the first line of text will be justified, and the last word on the first line will be flushed to the right of the JTextPane.

        The test looks for black color near the right edge of the JTextPane, but it does not fail the test if no black pixel is found.

        The test as it's written now should fail but it does not.

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

                Created:
                Updated:
                Resolved: