8225105: java/awt/Focus/ShowFrameCheckForegroundTest/ShowFrameCheckForegroundTest.java fails in Windows 10

Reviewed-by: prr, serb
This commit is contained in:
Jayathirth D V 2019-06-03 11:56:48 +05:30
parent 4651ce7fc9
commit abe29730ed

View File

@ -66,7 +66,7 @@ public class ShowFrameCheckForegroundTest {
public void start() {
showButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
testToplevel.setVisible(true);
Util.showWindowWait(testToplevel);
}
});
nofocusFrame.add(showButton);
@ -98,10 +98,12 @@ public class ShowFrameCheckForegroundTest {
switch (stage) {
case 1:
toplevel.setVisible(true);
Util.showWindowWait(toplevel);
break;
case 2:
testToplevel = toplevel;
Util.showWindowWait(nofocusFrame);
Util.waitForIdle(robot);
Util.clickOnComp(showButton, robot);
break;
}