Hi Sergey,

> On 07-May-2020, at 3:11 AM, Sergey Bylokhov <sergey.bylok...@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

Reply via email to