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

[TestBug] StubTextLayout

XMLWordPrintable

    • b10

      Currently, most of the text layout methods in StubTextLayout are stubbed out, with the exception of a couple of methods (getHitInfo, getBounds).

      This prevents us from developing behavior tests and tests that involve laying out simple text (that is, text that does not require complex shaping, bidi, etc.).

      One possible solution is to use the PrismTextLayout together with stubbed out fonts - for example, treating each symbol as a square regardless of the font name.
      Not only this will enable development of headless behavior tests and tests for the text components, but also bring the testing environment closer to the product configuration.

            angorya Andy Goryachev
            angorya Andy Goryachev
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: