Mercurial > hg > release > icedtea7-forest-2.4 > jdk
changeset 6359:b9b05aec0576
7153702: [TEST_BUG] [macosx] Synchronization problem in test javax/swing/JPopupMenu/6827786/bug6827786.java
Reviewed-by: coffeys
author | kshefov |
---|---|
date | Tue, 23 Apr 2013 19:03:02 +0400 |
parents | 4e95c4f110e1 |
children | 3e84cc3e444c |
files | test/javax/swing/JPopupMenu/6827786/bug6827786.java |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/javax/swing/JPopupMenu/6827786/bug6827786.java Fri Apr 19 12:46:23 2013 -0700 +++ b/test/javax/swing/JPopupMenu/6827786/bug6827786.java Tue Apr 23 19:03:02 2013 +0400 @@ -1,5 +1,5 @@ /* - * 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. * * This code is free software; you can redistribute it and/or modify it @@ -65,7 +65,11 @@ checkfocus(); // 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 Util.hitKeys(robot, KeyEvent.VK_S); toolkit.realSync();