RFR: 8306812: Open source several AWT Miscellaneous tests [v4]

Tejesh R tr at openjdk.org
Wed May 24 03:27:55 UTC 2023


On Wed, 24 May 2023 02:58:54 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Updated based on review comments
>
> test/jdk/java/awt/PopupMenu/PopupMenuStayOpen.java line 30:
> 
>> 28:   @summary Checks that popup menu stay open after a triggering click.
>> 29:   @key headful
>> 30:   @run main/othervm -Dsun.java2d.uiScale=1 PopupMenuStayOpen
> 
> Why do you need to set uiscale=1 in this test?

If the uiscale is not set then the position of popup menu varies according to display screen, like may not be always from bottom-left of cursor (when mouse click happens). Since we are only open sourcing the test, so had to set the scale to 1 so that it passes in all conditions.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13828#discussion_r1203361682



More information about the client-libs-dev mailing list