RFR: 8273578: javax/swing/JMenu/4515762/bug4515762.java fails on macOS 12
Jayathirth D V
jdv at openjdk.java.net
Thu Sep 23 04:52:51 UTC 2021
On Fri, 17 Sep 2021 12:24:40 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> The test sometimes fail on macos12 citing "Action has not been received". Seems like some key events sometimes are not received reliably.
> Proposed fix is to apply mach5 stability fixes which is to set autodelay to 100ms, move frame to center of screen from top-left, added extra waitForIdle(), wait for 1 sec after frame is made visible.
> Additionally, it is seen that it mixes Util.hitKeys and robot.keyPress/Release. Changed to make it use robot.keyPress/keyRelease all times. Also, updated test to have specific error message for specific keyevent so that we know which keyevent is not received in case it fails again.
>
> Run on mac12 and all other platforms multiple times and test run is green. Link in JBS.
8273578 is used in problem lists: [test/jdk/ProblemList.txt] dont know why this error is shown. I dont see it in problemList.
@prsadhuk please verify before push.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5564
More information about the client-libs-dev
mailing list