On Tue, 9 Jun 2026 11:39:45 GMT, Ziad El Midaoui <[email protected]> wrote:
>> modules/javafx.controls/src/test/java/test/com/sun/javafx/scene/control/skin/modena/TextInputControlModenaTest.java
>> line 179:
>>
>>> 177: }
>>> 178:
>>> 179: private static Text getPromptNode(TextInputControl control) {
>>
>> I wonder if we should move it to the `TextInputSkinShim` instead, something
>> like this:
>>
>> public static Text getPromptNode(TextInputControl c) {
>> var skin = c.getSkin();
>> if(skin instanceof TextFieldSkin skin) {
>> return skin.getPromptNode();
>> } else if(skin instanceof TextAreaSkin skin) {
>> return skin.getPromptNode();
>> }
>> ...
>>
>>
>> it will impact other tests, but probably cleaner long term.
>
> Yes it is cleaner, currently there is a `getPromptNode()` method for
> `TextField` and `TextArea` only in `TextInputSkinShim`, but adding this new
> method would require us to make a change to many tests, maybe we can do this
> in another ticket and refactor it? what do you think ?
No, it will not touch the other tests, only their execution.
Basically, instead of two methods `getPromptNode(TextField)` and
`getPromptNode(TextArea)` in the shim, you'll have one -
`getPromptNode(TextInputControl)`. No other changes are needed.
-------------
PR Review Comment: https://git.openjdk.org/jfx/pull/2184#discussion_r3381735120