RFR: 8354701: Open source few JToolTip tests

Harshitha Onkar honkar at openjdk.org
Mon Apr 21 21:18:46 UTC 2025


On Thu, 17 Apr 2025 02:15:30 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:

> Few more tests are open sourced:
> 
> - javax/swing/JToolTip/4225314/bug4225314.java manual
> - javax/swing/JToolTip/TooltipTest/TooltipTest.java manual
> - javax/swing/JToolTip/4255441/bug4255441.java manual

LGTM apart from minor test instruction edit.

test/jdk/javax/swing/JToolTip/TooltipTest.java line 49:

> 47:         2.  Move the mouse over the button labeled "Long tip". If the\s
> 48:             last letter of the tooltip that appears is not all visible,
> 49:             then the test fails. If you can see the entire last character,

Suggestion:

            last letter of the tooltip appears clipped,
            then the test fails. If you can see the entire last character,

test/jdk/javax/swing/JToolTip/TooltipTest.java line 55:

> 53:             Move the mouse pointer over the button labeled "Mnemonic" and look
> 54:             at tooltip when it appears. It should read "hint".
> 55:             Test passes if it is so and fails otherwise (bug 4375928).

Suggestion:

            If the above is true test passes else test fails (bug 4375928).

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

Marked as reviewed by honkar (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/24708#pullrequestreview-2782255059
PR Review Comment: https://git.openjdk.org/jdk/pull/24708#discussion_r2053001939
PR Review Comment: https://git.openjdk.org/jdk/pull/24708#discussion_r2053002854


More information about the client-libs-dev mailing list