RFR: 8344581: [TESTBUG] java/awt/Robot/ScreenCaptureRobotTest.java failing on macOS [v2]
Naveen Narayanan
duke at openjdk.org
Mon Jan 27 06:16:29 UTC 2025
On Fri, 24 Jan 2025 06:49:05 GMT, Alexander Zvegintsev <azvegint at openjdk.org> wrote:
>> Naveen Narayanan has updated the pull request incrementally with one additional commit since the last revision:
>>
>> 8344581: java/awt/Robot/ScreenCaptureRobotTest.java failing on macOS
>
> test/jdk/java/awt/Robot/ScreenCaptureRobotTest.java line 118:
>
>> 116: IMAGE_WIDTH, IMAGE_HEIGHT);
>> 117:
>> 118: robot.mouseMove(0,0);
>
> I guess it is safer to move this `mouseMove` call right after the Robot creation, so in case the system is slow and shows a mouse cursor on the screenshot, there is a delay between the mouse movement and the screen capture.
Moved `mouseMove` just after Robot creation.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/23264#discussion_r1930025536
More information about the client-libs-dev
mailing list