<Swing Dev> RFR: 8196090: javax/swing/JComboBox/6559152/bug6559152.java fails
Sergey Bylokhov
serb at openjdk.java.net
Mon Oct 19 01:49:13 UTC 2020
On Fri, 16 Oct 2020 13:58:15 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
> Please review a test fix for a test issue seen where correct item of combobox is not selected.
> The issue seems to stem from the fact the key events was processed without waiting for the frame to show up and also
> delay between key events was less as it used ExtendedRobot which by default sets delay between events to 20ms so key
> event was not processed correctly in mach5 system. Added robot delay to allow frame to show up and also replaced
> ExtendedRobot to awt Robot and sets delay to 100ms to be consistent as it is used for other tests. Mach5 job was run
> for several iteration on all 3 platforms. Link in JBS
test/jdk/javax/swing/JComboBox/6559152/bug6559152.java line 90:
> 88:
> 89: private void testImpl() throws Exception {
> 90: robot.keyPress(KeyEvent.VK_DOWN);
Extended robot calls "delay()" and "waitForIdle()" twice for each "type()", so it does not look like to roor cause, it
is pretty similar to the updated code.
-------------
PR: https://git.openjdk.java.net/jdk/pull/700
More information about the swing-dev
mailing list