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

TextLayout/MyanmarTextTest.java passes if no Myanmar font is found

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 11.0.7, 11.0.7-oracle, 17, 21, 25, 26
    • client-libs
    • 2d
    • b04

      The java/awt/font/TextLayout/MyanmarTextTest.java test passes if no font supporting Myanmar script is installed. Instead, it should throw jtreg.SkippedException if the preconditions to perform testing aren't met.

      For example, MyanmarTextTest.java looks for 'Padauk' font on Linux. If the font is missing, the test returns early, that is the test passes, but it is wrong. The test should throw jtreg.SkippedException when the necessary preconditions are not satisfied.

      The java/awt/font/TextLayout/MyanmarTextTest.java test creates and displays GUI, but it passes on headless machines because the preconditions aren't met. This behaviour leads to wrong assumption that the test can be run headless, but it can't.

            mvs Manukumar V S
            mvs Manukumar V S
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: