RFR: 8296554: MouseLocationOnScreenTest sometime fails when system is busy [v2]

Kevin Rushforth kcr at openjdk.org
Tue Apr 15 22:41:45 UTC 2025


On Tue, 15 Apr 2025 16:27:49 GMT, Michael Strauß <mstrauss at openjdk.org> wrote:

>>> A bigger question is why are we using `int` coordinates? Wouldn't it make the test depend on the scale (and also on the screen resolution and window position)?
>> 
>> I run this frequently on my Windows laptop with 125% and have never seen a problem. Unless we do, this seems unrelated to the bug being fixed.
>
> I'd recommend waiting for a few short times (1, 3, 5ms seems good), and then an additional long time just in case the machine has experienced a hiccup at that very moment. There's no harm done in waiting a second for a test to fail, as that would not slow down tests in most cases.

@Gopalora if you adopt Michael's addition to Ambarish's suggestion, I recommend leaving `DELAY_TIME` at 1, looping for 5 times, and then having one final test for 500 or 1000 msec (0.5 or 1.0 seconds).

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

PR Review Comment: https://git.openjdk.org/jfx/pull/1772#discussion_r2045643516


More information about the openjfx-dev mailing list