RFR: 8296632: Write a test to verify the content change of TextArea sends TextEvent. [v4]

Harshitha Onkar honkar at openjdk.org
Wed Nov 16 20:02:09 UTC 2022


On Wed, 16 Nov 2022 19:13:57 GMT, Phil Race <prr at openjdk.org> wrote:

>> ravi gupta has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8296632: Review fixes.
>
> test/jdk/java/awt/event/ComponentEvent/TextAreaTextEventTest.java line 72:
> 
>> 70: 
>> 71:             typeKey(KeyEvent.VK_T);
>> 72: 
> 
> In theory the autoWaitForIdle should ensure that events are processed. We'll see.
> If you find otherwise then here (and after typing the Enter key) it might be safer to do an additional robot.delay(500);
> You want to give every chance to process these events.

Tested it locally on Win10. Works as expected. I agree @prrace, adding additional delay would make sure that all events are processed.

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

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



More information about the client-libs-dev mailing list