-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8279641: Create manual JTReg tests for Swing accessibility
Reviewed-by: serb, prr
- Loading branch information
Showing
35 changed files
with
1,410 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
<!-- | ||
Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
This code is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 only, as | ||
published by the Free Software Foundation. | ||
This code is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
version 2 for more details (a copy is included in the LICENSE file that | ||
accompanied this code). | ||
You should have received a copy of the GNU General Public License version | ||
2 along with this work; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
or visit www.oracle.com if you need additional information or have any | ||
questions. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
table, th, td { | ||
border: 1px solid black; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<table> | ||
<tr> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:5%;">S.No</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:25%;">Test</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:75%;">Scenario</th> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>Button Demo</td> | ||
<td> | ||
<ol> | ||
<li> Tab until the Button Demo icon <img src="./resource/rbtn.png"> has focus. Press 'space' to | ||
choose.<br> | ||
<li> Tab until the "Button Demo" tab has focus. Press 'space'. Press 'tab'.<br> | ||
<li> Use the arrow keys to navigate between "Buttons", "Radio Buttons", and "Check Boxes".<br> | ||
<li> Tab to enter the demo pane. Tab & Shift-Tab to move between each button.<br> | ||
<li> Press 'space' to trigger (i.e. "press") a button.<br> | ||
<li> Repeat steps 1 through 5 for the <b>Radio Button</b> & <b>Check Boxes</b> tabs.<br> | ||
</ol> | ||
</td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"><b>Expected Result</b></td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"> | ||
<ol> | ||
<li>Verify that as you navigate, the focus is shown, e.g.</li> | ||
<img src="./resource/btn.png"> | ||
<li>As you press 'space' to trigger each button, verify that you see each button visually depress. | ||
e.g.: | ||
</li> | ||
<img src="./resource/dep.png"> | ||
</ol> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"><b>Note: actual component appearence may vary depending on look and | ||
feel.</b></td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
/* | ||
@test | ||
@key headful | ||
@summary manual test for accessibility button demo | ||
@run main/manual SwingSetTest ButtonDemo | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<!-- | ||
Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
This code is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 only, as | ||
published by the Free Software Foundation. | ||
This code is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
version 2 for more details (a copy is included in the LICENSE file that | ||
accompanied this code). | ||
You should have received a copy of the GNU General Public License version | ||
2 along with this work; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
or visit www.oracle.com if you need additional information or have any | ||
questions. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
table, th, td { | ||
border: 1px solid black; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<table> | ||
<tr> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:5%;">S.No</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:25%;">Test</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:75%;">Scenario</th> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>ComboBox Demo</td> | ||
<td> | ||
<ol> | ||
<li> Tab until ComboBox icon<img src="./resource/cmb.png"> has focus. Press 'Space' to choose.</li> | ||
<li>Tab until the "ComboBox Demo" tab has focus. Press 'space'. Press 'tab'.</li> | ||
<li> Use Tab and Shift-Tab to move between the four ComboBox widgets. | ||
<li>Use the space and down arrow keys to bring up the drop-down list.</li> | ||
<li> Use the up and down arrows to navigate up and down the list.</li> | ||
<li>Use the 'space' key to make a the selection.</li> | ||
<li> Repeat 4,5 but hit Esc key to cancel the drop-down.</li> | ||
</ol> | ||
</td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"><b>Expected Result</b></td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"> | ||
<ol> | ||
<li>Verify that space and down arrow bring up the drop-down list.</li> | ||
<img src="./resource/list.png"> | ||
<li>Verify that up and down arrows move up and down the list.</li> | ||
<li>Verify that 'space' makes the selection (the drop-down list should collapse).</li> | ||
</ol> | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
/* | ||
@test | ||
@key headful | ||
@summary manual test for accessibility button demo | ||
@run main/manual SwingSetTest ComboBoxDemo | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<!-- | ||
Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
This code is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 only, as | ||
published by the Free Software Foundation. | ||
This code is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
version 2 for more details (a copy is included in the LICENSE file that | ||
accompanied this code). | ||
You should have received a copy of the GNU General Public License version | ||
2 along with this work; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
or visit www.oracle.com if you need additional information or have any | ||
questions. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
table, th, td { | ||
border: 1px solid black; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<table> | ||
<tr> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:5%;">S.No</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:25%;">Test</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:75%;">Scenario</th> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>Demo Selection</td> | ||
<td>Move between demos with 'tab' and 'shift-tab', and left and right arrows. Type 'space' to activate a demo. | ||
<img src="./resource/dms.png"> | ||
</td> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"><b>Expected Result</b></td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"> | ||
Verify that there is visible focus as you tab (or arrow) between demo icons. Typing 'space' should change | ||
the selected demo. | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"><b>Note: actual component appearence may vary depending on look and | ||
feel.</b></td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
* | ||
* This code is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License version 2 only, as | ||
* published by the Free Software Foundation. | ||
* | ||
* This code is distributed in the hope that it will be useful, but WITHOUT | ||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
* version 2 for more details (a copy is included in the LICENSE file that | ||
* accompanied this code). | ||
* | ||
* You should have received a copy of the GNU General Public License version | ||
* 2 along with this work; if not, write to the Free Software Foundation, | ||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
* | ||
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
* or visit www.oracle.com if you need additional information or have any | ||
* questions. | ||
*/ | ||
/* | ||
@test | ||
@key headful | ||
@summary manual test for accessibility button demo | ||
@run main/manual SwingSetTest DemoSelection | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!-- | ||
Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. | ||
DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
This code is free software; you can redistribute it and/or modify it | ||
under the terms of the GNU General Public License version 2 only, as | ||
published by the Free Software Foundation. | ||
This code is distributed in the hope that it will be useful, but WITHOUT | ||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | ||
version 2 for more details (a copy is included in the LICENSE file that | ||
accompanied this code). | ||
You should have received a copy of the GNU General Public License version | ||
2 along with this work; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | ||
Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | ||
or visit www.oracle.com if you need additional information or have any | ||
questions. | ||
--> | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
table, th, td { | ||
border: 1px solid black; | ||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
|
||
|
||
<table> | ||
<tr> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:5%;">S.No</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:25%;">Test</th> | ||
<th style="background-color:rgb(204,255,255); font-weight:bold; width:75%;">Scenario</th> | ||
</tr> | ||
<tr> | ||
<td>1</td> | ||
<td>OptionPane Demo</td> | ||
<td> | ||
<ol> | ||
<li>Tab until the OptionPane icon <img src="./resource/op.png">has focus. Press 'space' to choose. | ||
<li>Tab until the "OptionPane Demo" tab has focus. Press 'space'. Press 'tab'. The 'Show Input Dialog' | ||
button should have focus. | ||
<li>Press 'space'. An Input dialog should pop up. Type some text, and hit return. The dialog should | ||
change to a Message dialog with text saying "That was a pretty good movie!" Press return. | ||
<li>Bring up the dialog again (space). Press 'esc' and confirm that the dialog goes away without the | ||
Message from above. | ||
<li>Press Tab to move down through the buttons, and select "Component Dialog Example" (press space). A | ||
dialog should appear. Tab to ensure that you can navigate through all the components:<br> | ||
a. Textfield<br> | ||
b. ComboBox<br> | ||
c. All 4 buttons: "Cancel", "Probably", "Maybe", "No", "Yes".<br> | ||
d. Press 'esc' to cancel the dialog.<br> | ||
</ol> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"> | ||
<b>Expected Result</b> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td style="Width:100%;" colspan="3"> | ||
When a popup window is created, focus must be on the popup window; when the window is closed, focus must | ||
return to the previous focus point. | ||
</td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> | ||
|
||
|
Oops, something went wrong.
5523dde
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues