RFR: 8354451: Open source some more Swing popup menu tests [v2]

Phil Race prr at openjdk.org
Tue Apr 15 22:45:06 UTC 2025


On Tue, 15 Apr 2025 00:44:17 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:

>> 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, but I see why the msg was not logged in PFJ.logArea.
> The "popupMenuWillBecomeInvisible: " needs to be added to the PFJ.log() instead of standard out.

I have decided I should just kill setMessage and call PassFailFrame.log directly

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

PR Review Comment: https://git.openjdk.org/jdk/pull/24636#discussion_r2045636262


More information about the client-libs-dev mailing list