<Swing Dev> RFR: 8238085 PIT: javax/swing/JSpinner/8223788/JSpinnerButtonFocusTest.java fails on mac
Tejpal Rebari
tejpal.rebari at oracle.com
Thu May 7 06:05:35 UTC 2020
Hi Sergey,
> On 07-May-2020, at 3:11 AM, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:
>
> Hi, Tejpal.
>
> Please confirm that the update test still fail before the fix of JDK-8223788.
Yes I verified that the test fails without the fix of JDK-8223788.
>
> On 5/6/20 11:38 am, Tejpal Rebari wrote:
>> Issue : The test JSpinnerButtonFocusTest fails in nightly testing
>> on Mac OS platform.
>
> What was the root cause of the failure?
Earlier in the test there was many keyPress, KeyRelease events,
And there was no waiting to reach the focus to spinner1 editor.
>> Fix : Reduced the number of keyPress and keyRelease events by
>> calling requestFocusInWindow on spinner1 editor.
>> Added a Focus Listener on editor1.
>
Now the test will wait for the focus to reach the spinner1 editor.
Then only it will press tab and will check whether spinner2 is getting focus or not.
If the focus is not reaching to spinner1 editor it will throw
“Timeout waiting for editor1 to gain focus” Error.
Thanks and Regards
Tejpal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/swing-dev/attachments/20200507/eeee8c42/attachment-0001.htm>
More information about the swing-dev
mailing list