RFR: 8306137: Open source several AWT ScrollPane related tests [v10]
Alexey Ivanov
aivanov at openjdk.org
Mon May 22 13:25:06 UTC 2023
On Mon, 22 May 2023 13:09:20 GMT, Tejesh R <tr at openjdk.org> wrote:
>> test/jdk/java/awt/ScrollPane/ScrollPaneRemoveAdd.java line 76:
>>
>>> 74: frame.pack();
>>> 75: frame.setLocationRelativeTo(null);
>>> 76: frame.setAlwaysOnTop(true);
>>
>> I wonder why you decided to make the frame in this test always on top?
>
> When I run the folder, due to previous test/command prompt the frame used to show up behind command prompt, so to be on safer side I used always on top. When we run individual test, it works fine.
It may still not work… You have to disable keyboard input timeout by setting `ForegroundLockTimeout` to zero as explained in [requirements for Windows](https://wiki.openjdk.org/display/ClientLibs/Automated+client+GUI+testing+system+set+up+requirements#AutomatedclientGUItestingsystemsetuprequirements-Windows-SpecificSystemsetupnotes).
Most likely, you don't want to do it on the system that you regularly use, otherwise apps could steal focus.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/13621#discussion_r1200511473
More information about the client-libs-dev
mailing list