On Tue, 8 Mar 2022 05:10:51 GMT, lawrence.andrews <d...@openjdk.java.net> wrote:

>> Following methods are covered in this testcase
>> getAccessibleAction()
>> getAccessibleActionCount()
>> getAccessibleActionDescription()
>> doAccessibleAction(int direction) 
>> 
>> @shurymury
>
> lawrence.andrews has updated the pull request incrementally with one 
> additional commit since the last revision:
> 
>   Added command after the date

test/jdk/javax/swing/JSlider/8262981/JSliderAccessibleAction.java line 264:

> 262:                             "Increment button");
> 263:                 }
> 264:                 if (jSliderInitialValue.get() != 
> currentJSliderValue.get()) {

This is  fundamentally unstable. 

You are clicking on the decrease button. The actual decrease which happened in 
the slider after the click may be more than you expect. Or less. 

The only reliable condition perhaps is that the value has decreased and even 
that may have a delayed effect, so it needs to be waited for. 

For example see  sanity/client/SwingSet/src/SliderDemoTest.java.

-------------

PR: https://git.openjdk.java.net/jdk/pull/7734

Reply via email to