RFR: 8296554: MouseLocationOnScreenTest sometime fails when system is busy

Andy Goryachev angorya at openjdk.org
Fri Apr 11 18:25:29 UTC 2025


On Fri, 11 Apr 2025 09:37:12 GMT, Gopal Pattnaik <duke at openjdk.org> wrote:

> There was a Assertion fail issue in mouse location test case JDK-8296554,
> Reason: We felt the one mili second delay time for the Robot test may be insufficient in few OS.
> Solution: We Changed the delay time to three mili second.
> 
> Verification:
> Tested in Windows 11, and the Assert fail issue is not found.

The other alternative (just a suggestion) is to modify the `validate()` method as follows:

- wait 1 ms
- check the coordinates
- if wrong, wait for longer (3? 5?)
- check again
- if coordinates are wrong, fail

what do you think?

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

PR Comment: https://git.openjdk.org/jfx/pull/1772#issuecomment-2797723944


More information about the openjfx-dev mailing list