<Swing Dev> RFR: 8196090: javax/swing/JComboBox/6559152/bug6559152.java fails
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Mon Oct 19 04:32:11 UTC 2020
On Mon, 19 Oct 2020 01:46:22 GMT, Sergey Bylokhov <serb 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.
Extended robot uses 20ms delay between events whereas we are using 100ms for setAutoDelay for other tests and we have
seen timing does matter in mach5 testing, so although it's similar, time value differs.
-------------
PR: https://git.openjdk.java.net/jdk/pull/700
More information about the swing-dev
mailing list