RFR: 8296632: Write a test to verify the content change of TextArea sends TextEvent [v4]
Harshitha Onkar
honkar at openjdk.org
Thu Nov 17 17:32:32 UTC 2022
On Thu, 17 Nov 2022 11:27:07 GMT, Alexey Ivanov <aivanov at 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
More information about the client-libs-dev
mailing list