RFR: 8273634: [TEST_BUG] Improve javax/swing/text/ParagraphView/6364882/bug6364882.java

Phil Race prr at openjdk.java.net
Wed Sep 29 03:35:34 UTC 2021


On Thu, 23 Sep 2021 19:19:34 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> The test is being moved from the closed to open.
> 
> I updated the `bug6364882.java` test so that it's headless now. If it fails, the image of the `editorPane` is saved for analysis. I also added more asserts which verify:
> 
> • the first three lines are aligned to the right edge;
> • the fourth line isn't justified and its width is less than 3/4 of the width;
> • the fifth and sixth lines have width less than that of the fourth line and have the same width.
> 
> There's an option to show the UI for visual inspection as well as to save the image even if the test passes; use `-show` and/or `-save` parameters to the test correspondingly.
> 
> [1] [JDK-6364882](https://bugs.openjdk.java.net/browse/JDK-6364882): Last line of a paragraph should not be justified

This test looks headless.
It uses frame only if an arg is passed clearly for manual debugging and the test config doesn't use it.
"Our GUI platforms" being what ?
And the information being pasted in here should be in the bug report.
Even then there's nothing to help someone figure out why it passed for others and not you.
What font was in use ? Why do you think headful made a difference ?

-------------

PR: https://git.openjdk.java.net/jdk/pull/5661



More information about the client-libs-dev mailing list