RFR: 8198626: java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.html fails on mac
Sergey Bylokhov
serb at openjdk.java.net
Mon Nov 8 04:27:41 UTC 2021
On Fri, 5 Nov 2021 10:26:07 GMT, Pankaj Bansal <pbansal at openjdk.org> wrote:
> Test java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.html fails on mac fails on Mac. The test fails on my local machine (macOS BigSur) always and on mach5 also. The test uses Robot for mouse clicks and there is no delay or autoDelay set on Robot.
>
> The fix adds set autoDelay on the robot. Along with this, some other cleanup is done. The test passes after the changes on my local mac and mach5 (Link in the JBS)
test/jdk/java/awt/KeyboardFocusmanager/TypeAhead/TestDialogTypeAhead.java line 119:
> 117: public void actionPerformed(ActionEvent e) {
> 118: System.err.println("B pressed");
> 119: d.setVisible(true);
I think the d.setVisible(true) will be blocked and the next "EventQueue.invokeLater" will be executed after the dialog will be closed, unlike the old code where the invokeLater was executed after dialog became visible.
-------------
PR: https://git.openjdk.java.net/jdk/pull/6273
More information about the client-libs-dev
mailing list