提交 2fbd3680 编写于 作者: K kshefov

7153702: [TEST_BUG] [macosx] Synchronization problem in test...

7153702: [TEST_BUG] [macosx] Synchronization problem in test javax/swing/JPopupMenu/6827786/bug6827786.java
Reviewed-by: serb, alexsch
上级 f0310e85
/* /*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -65,7 +65,11 @@ public class bug6827786 { ...@@ -65,7 +65,11 @@ public class bug6827786 {
checkfocus(); checkfocus();
// select menu // select menu
Util.hitKeys(robot, KeyEvent.VK_ALT, KeyEvent.VK_F); if (sun.awt.OSInfo.getOSType() == sun.awt.OSInfo.OSType.MACOSX) {
Util.hitKeys(robot, KeyEvent.VK_CONTROL, KeyEvent.VK_ALT, KeyEvent.VK_F);
} else {
Util.hitKeys(robot, KeyEvent.VK_ALT, KeyEvent.VK_F);
}
// select submenu // select submenu
Util.hitKeys(robot, KeyEvent.VK_S); Util.hitKeys(robot, KeyEvent.VK_S);
toolkit.realSync(); toolkit.realSync();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册