RFR: 8364506: javax/swing/Popup/TaskbarPositionTest.java can fail subsequent tests on MacOS

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Aug 6 07:22:06 UTC 2025


On Mon, 4 Aug 2025 15:14:30 GMT, Manukumar V S <mvs at openjdk.org> wrote:

> Issue:
> javax/swing/Popup/TaskbarPositionTest.java can fail subsequent tests on MacOS because of using 'Cntrl+Down Arrow' as this acts as a shortcut in MacOS to show all windows related to the focused one.
> 
> Fix:
> Change the 'Cntrl' key to 'Shift'
> 
> Testing:
> Tested in all supported platforms using mach5 and got all PASS.

test/jdk/javax/swing/Popup/TaskbarPositionTest.java line 104:

> 102: 
> 103:     public TaskbarPositionTest() {
> 104:         frame = new JFrame("Use SHIFT-down to show a JPopupMenu");

guess for these kind of jtreg headful tests it is suggested "Go into System Settings, locate the Keyboard Panel, and from there select the Shortcuts tab. Disable ALL shortcuts. "
which is already mentioned in the summary above "The test uses Ctrl+Down Arrow which is a system shortcut on macOS,
* disable it in system settings, otherwise the test will fail"

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

PR Review Comment: https://git.openjdk.org/jdk/pull/26623#discussion_r2256115338


More information about the client-libs-dev mailing list