< prev index next >

test/java/awt/List/ActionEventTest/ActionEventTest.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2016, 2016, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. --- 1,7 ---- /* ! * Copyright (c) 2016 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation.
*** 22,32 **** */ /* * @test * @key headful ! * @bug 6191390 * @summary Verify that ActionEvent is received with correct modifiers set. * @run main ActionEventTest */ import java.awt.AWTException; --- 22,32 ---- */ /* * @test * @key headful ! * @bug 6191390 8158380 * @summary Verify that ActionEvent is received with correct modifiers set. * @run main ActionEventTest */ import java.awt.AWTException;
*** 79,96 **** --- 79,102 ---- } }); list.select(0); robot.keyPress(KeyEvent.VK_ALT); + robot.waitForIdle(); robot.keyPress(KeyEvent.VK_SHIFT); + robot.waitForIdle(); robot.keyPress(KeyEvent.VK_CONTROL); + robot.waitForIdle(); // Press Enter on list item, to generate action event. robot.keyPress(KeyEvent.VK_ENTER); + robot.waitForIdle(); robot.keyRelease(KeyEvent.VK_ENTER); robot.waitForIdle(); robot.keyRelease(KeyEvent.VK_ALT); + robot.waitForIdle(); robot.keyRelease(KeyEvent.VK_SHIFT); + robot.waitForIdle(); robot.keyRelease(KeyEvent.VK_CONTROL); robot.waitForIdle(); } public static void main(String args[]) {
< prev index next >