RFR: 8354451: Open source some more Swing popup menu tests
Harshitha Onkar
honkar at openjdk.org
Tue Apr 15 00:47:42 UTC 2025
On Tue, 15 Apr 2025 00:33:31 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> Open source some more Swing menu tests
>
> test/jdk/javax/swing/JPopupMenu/bug4234793.java line 84:
>
>> 82:
>> 83: Notice each time you perform a hide/cancel action an appropriate message should
>> 84: appear in the log area
>
> _"Click to display the menu, then to hide it, LEFT click on the window background."_ does not produce PopupMenu cancelled msg for the 2 menus on the menubar and the combobox menu. But clicking the mouse on another component does cause the popup cancelled msg to be displayed.
I didn't notice it earlier ... I see why the msg is not logged in PFJ.logArea.
The "popupMenuWillBecomeInvisible: " needs to be added to the PFJ.log() instead of standard out.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/24636#discussion_r2043247341
More information about the client-libs-dev
mailing list