RFR: 8339902: Open source couple TextField related tests

Harshitha Onkar honkar at openjdk.org
Mon Sep 16 23:47:04 UTC 2024


On Mon, 16 Sep 2024 23:02:58 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

> Clean up and open source five TextField related tests: 
> java/awt/TextField/CaretPositionTest;
> java/awt/TextField/SetBoundsTest;
> java/awt/TextField/SetEchoCharTest4;
> java/awt/TextField/SetPasswordTest;
> java/awt/TextField/ZeroEchoCharTest

test/jdk/java/awt/TextField/SetEchoCharTest4/SetEchoCharTest4.java line 37:

> 35:  * @bug 4226580
> 36:  * @summary TextField with echoChar add+remove+add seems to be broken
> 37:  * @library /open/test/jdk/java/awt/regtesthelpers

Same here. Library path needs to be updated and applicable to other tests as well.

test/jdk/java/awt/TextField/SetEchoCharTest4/SetEchoCharTest4.java line 75:

> 73:         add(tf3);
> 74:         add(b);
> 75:         setVisible(true);

Not required here as PassFailJFrame handles setVisible(true) for test frame as well.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21026#discussion_r1762085509
PR Review Comment: https://git.openjdk.org/jdk/pull/21026#discussion_r1762088145


More information about the client-libs-dev mailing list