RFR: 8278828 : java/awt/a11y/AccessibleTextTest.java's createTextArea() just shows instructions on the UI

Artem Semenov asemenov at openjdk.java.net
Thu Dec 16 08:38:00 UTC 2021


On Wed, 15 Dec 2021 02:21:35 GMT, lawrence.andrews <duke at openjdk.java.net> wrote:

> 1) Test scenario was just showing test instruction with JTextArea. So added the JTextArea as the instruction and method says. 
> 2) JTextArea is filled with contents so that and an Emoji character making sure that screen reader can read Emoji also.
> 3) Now user can user arrow keys to navigate the JTextArea and screen reader can read it.
> 
> @shurymury 
> 
> Attached the screen shot of the test UI which contains JTextArea along with the instruction.
> <img width="623" alt="Screen Shot 2021-12-14 at 7 09 14 PM" src="https://user-images.githubusercontent.com/87324768/146111187-29f81aab-a138-442d-90bd-df24d512fe01.png">

test/jdk/java/awt/a11y/AccessibleTextTest.java line 142:

> 140:         panel.setLayout(new FlowLayout());
> 141:         JTextArea textArea = new JTextArea(value);
> 142:         panel.add(textArea);

Hello. @mrserb Thanks for the invitation.
This addition seems redundant to me. This is a test for a non-editable JTextArea. In it, the instruction is the same as the test.
If you press "Pass", the next test will appear, which has a multi-line text editor. This will also be a JTextArea, but already editable.

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

PR: https://git.openjdk.java.net/jdk/pull/6844



More information about the client-libs-dev mailing list