Integrated: 8274465: Fix javax/swing/text/ParagraphView/6364882/bug6364882.java failures

Alexey Ivanov aivanov at openjdk.java.net
Fri Oct 1 18:45:36 UTC 2021


On Wed, 29 Sep 2021 19:48:20 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> I made the test and its assertions more flexible in regards to the font size and to the number of lines.
> 
> The test still requires there are at least four lines so that the text is wrapped before the first hard line break; thus at least one line of text is justified. This pre-requisite gets broken if `font-size: 4pt` property is added to the `style` attribute in my local environment. I also ran the test with a few larger font sizes, the updated test passes successfully.
> 
> I made sure the image is saved if any exception gets thrown from `checkJustification`, which wasn't the case.
> 
> This PR replaces #5744.

This pull request has now been integrated.

Changeset: bb4500d0
Author:    Alexey Ivanov <aivanov at openjdk.org>
URL:       https://git.openjdk.java.net/jdk/commit/bb4500d0d227cbb238bd6c862e143f864106a31a
Stats:     64 lines in 1 file changed: 20 ins; 7 del; 37 mod

8274465: Fix javax/swing/text/ParagraphView/6364882/bug6364882.java failures

Reviewed-by: jiefu, serb

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

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



More information about the client-libs-dev mailing list