JDK-8342565 : [TestBug] StubTextLayout
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: other
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-10-17
  • Updated: 2025-04-15
  • Resolved: 2025-03-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
jfx25 b10Fixed
Related Reports
Blocks :  
Description
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.


Comments
Changeset: 91433775 Branch: master Author: Andy Goryachev <angorya@openjdk.org> Date: 2025-03-26 14:19:19 +0000 URL: https://git.openjdk.org/jfx/commit/91433775e75c9c662774f28de5310eab7da0fe7e
26-03-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jfx/pull/1667 Date: 2024-12-20 22:23:11 +0000
27-01-2025