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

Damon Nguyen dnguyen at openjdk.org
Thu Aug 7 16:35:13 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.

I agree. Keyboard shortcuts should be disabled to achieve consistent results across different devices for jtreg tests. There's a guideline and a list of setting changes here: https://wiki.openjdk.org/display/ClientLibs/Automated+client+GUI+testing+system+set+up+requirements

I think changing the key-binding here is not necessary after changing this setting. I recently also had this failing test (and possibly failing subsequent tests) because my device had keyboard shortcuts enabled. But after removing the shortcuts, the test passed (and others).

I'd recommend disabling keyboard shortcuts and trying your tests again to see if it's still reproducible.

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

PR Review: https://git.openjdk.org/jdk/pull/26623#pullrequestreview-3097924439


More information about the client-libs-dev mailing list