On Mon, 19 May 2025 12:12:22 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

>> Test was failing on macOS 14.7.1 system in CI pipeline. Logged output 
>> suggests that the mouse exit event is not triggered and thus the test fails.
>> Increased number of list items and adjusted the X and Y offset for mouse 
>> move events, so the mouse pointer will be within the frame and added robot 
>> delay to stabilize the test.
>> 
>> Verified the updated test in CI on macOS 14.7 machine and there is no 
>> failure.
>
> test/jdk/java/awt/List/ListEnterExitTest.java line 90:
> 
>> 88:             robot.waitForIdle();
>> 89:             robot.delay(100);
>> 90: 
> 
> I don't really understand why `waitForIdle` and `delay` are needed here at 
> all.
> 
> Robot just moves mouse to generate mouse enter and exit events. It can do so 
> without any delays, can't it?

There is an intermittent failure observed only on macOS 14.7.1 machines. So, I 
added a small delay and after that on multiple runs in CI, I don't see any 
failures.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25299#discussion_r2096870648

Reply via email to