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

lawrence.andrews duke at openjdk.java.net
Thu Dec 16 14:21:58 UTC 2021


On Thu, 16 Dec 2021 08:32:40 GMT, Artem Semenov <asemenov at openjdk.org> 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.

Hi @savoptik, 
a) The test createTextArea() does not have JTextArea . I have attached the screen shot of the test https://bugs.openjdk.java.net/browse/JDK-8278828
b) The test does not say its a non-editable JTextArea. Even the exception String also say as follows
exceptionString = "Simple text area test failed!";  . 
c) If user press "Pass" to see the next test then there is no need of  createTextArea() . Correct me if I am wrong?

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

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



More information about the client-libs-dev mailing list