On Thu, 17 Nov 2022 11:27:07 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:

>> Tested it locally on Win10. Works as expected. I agree with @prrace, adding 
>> additional delay would make sure that all events are processed.
>
> Without explicit `Robot.waitForIdle()` calls, the test looks as if 
> something's missing. Adding it explicitly before checking a condition gives 
> more confidence, the test has waited for the events to be processed.

@aivanov-jdk A quick clarification - Since `robot.setAutoWaitForIdle(true);` is 
set to true would it be required to add `waitForIdle()` calls explicitly too?

https://github.com/openjdk/jdk/blob/9c432a09dbf1824d793cc1a49b533e57f2316b62/src/java.desktop/share/classes/java/awt/Robot.java#L606

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

PR: https://git.openjdk.org/jdk/pull/11052

Reply via email to