RFR: 8356803: Test TextLayout/TestControls fails on windows & linux: line and paragraph separator show non-zero advance
Daniel Gredler
dgredler at openjdk.org
Fri May 30 23:48:26 UTC 2025
Per discussion in JBS, adds the following chars to the list of ignorable whitespace chars: U+000B (Vertical Tab), U+000C (Form Feed), U+0085 (Next Line), U+2028 (Line Separator), U+2029 (Paragraph Separator).
Adds the necessary testing in pre-existing automated test class `test/jdk/java/awt/font/TextLayout/FormatCharAdvanceTest.java`.
Removes now-unnecessary manual test `test/jdk/java/awt/font/TextLayout/TestControls.java`.
The `test/jdk/java/awt/font`, `test/jdk/java/awt/print` and `test/jdk/java/awt/Graphics2D/DrawString` tests all pass for me locally on Windows, Linux and macOS.
-------------
Commit messages:
- Add missing ignorable whitespace chars, add (automated) tests
Changes: https://git.openjdk.org/jdk/pull/25560/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=25560&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8356803
Stats: 215 lines in 3 files changed: 40 ins; 161 del; 14 mod
Patch: https://git.openjdk.org/jdk/pull/25560.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/25560/head:pull/25560
PR: https://git.openjdk.org/jdk/pull/25560
More information about the client-libs-dev
mailing list