RFR: 8315965: Open source various AWT applet tests
Alexander Zvegintsev
azvegint at openjdk.org
Wed Sep 20 00:06:41 UTC 2023
On Tue, 19 Sep 2023 21:36:14 GMT, Harshitha Onkar <honkar at openjdk.org> wrote:
>> Open sourcing few applet tests:
>>
>> java/awt/ScrollPane/ScrollPaneTest.java
>> java/awt/TextArea/Length.java
>> java/awt/Window/WindowOwner.java
>> java/awt/font/Rotate/RotateTest3.java
>
> test/jdk/java/awt/TextArea/Length.java line 30:
>
>> 28: * @test
>> 29: * @bug 4120876
>> 30: * @key headful
>
> Since we are not displaying anything, can this test be made headless?
No, `TextArea` a heavyweight component and cannot be created in headless environment.
https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/java/awt/TextComponent.java#L150
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/15754#discussion_r1330816253
More information about the client-libs-dev
mailing list