On Fri, 5 Nov 2021 10:26:07 GMT, Pankaj Bansal <pban...@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