Skip to content

Commit

Permalink
Create tests for APG design pattern example: Actions Menu Button Exam…
Browse files Browse the repository at this point in the history
…ple Using aria-activedescendant (#378)


Co-authored-by: James Scholes <[email protected]>
Co-authored-by: jscholes <[email protected]>
Co-authored-by: IsaDC <[email protected]>
  • Loading branch information
4 people authored Mar 11, 2021
1 parent 901b350 commit 9646312
Show file tree
Hide file tree
Showing 73 changed files with 5,645 additions and 162 deletions.
18 changes: 13 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,39 +40,47 @@ <h1>Test Patterns for Review</h1>
<td><a href="./tests/checkbox/index.html">Index</a></td>
<td><a href="./review/checkbox.html">Review</a></td>
<td>26</td>
<td><a href="https://github.com/w3c/aria-at/commit/5e0c75e" target="_blank">5e0c75e Reorder some assertions for consistency.
<td><a href="https://github.com/w3c/aria-at/commit/db93fd4" target="_blank">db93fd4 Generate test files again
</a></td>
</tr>
<tr>
<td>combobox-autocomplete-both</td>
<td><a href="./tests/combobox-autocomplete-both/index.html">Index</a></td>
<td><a href="./review/combobox-autocomplete-both.html">Review</a></td>
<td>30</td>
<td><a href="https://github.com/w3c/aria-at/commit/5e0c75e" target="_blank">5e0c75e Reorder some assertions for consistency.
<td><a href="https://github.com/w3c/aria-at/commit/db93fd4" target="_blank">db93fd4 Generate test files again
</a></td>
</tr>
<tr>
<td>menu-button-actions-active-descendant</td>
<td><a href="./tests/menu-button-actions-active-descendant/index.html">Index</a></td>
<td><a href="./review/menu-button-actions-active-descendant.html">Review</a></td>
<td>26</td>
<td><a href="https://github.com/w3c/aria-at/commit/" target="_blank"></a></td>
</tr>
<tr>
<td>menubar-editor</td>
<td><a href="./tests/menubar-editor/index.html">Index</a></td>
<td><a href="./review/menubar-editor.html">Review</a></td>
<td>40</td>
<td><a href="https://github.com/w3c/aria-at/commit/5e0c75e" target="_blank">5e0c75e Reorder some assertions for consistency.
<td><a href="https://github.com/w3c/aria-at/commit/db93fd4" target="_blank">db93fd4 Generate test files again
</a></td>
</tr>
<tr>
<td>modal-dialog</td>
<td><a href="./tests/modal-dialog/index.html">Index</a></td>
<td><a href="./review/modal-dialog.html">Review</a></td>
<td>29</td>
<td><a href="https://github.com/w3c/aria-at/commit/5e0c75e" target="_blank">5e0c75e Reorder some assertions for consistency.
<td><a href="https://github.com/w3c/aria-at/commit/db93fd4" target="_blank">db93fd4 Generate test files again
</a></td>
</tr>
<tr>
<td>tabs-manual-activation</td>
<td><a href="./tests/tabs-manual-activation/index.html">Index</a></td>
<td><a href="./review/tabs-manual-activation.html">Review</a></td>
<td>29</td>
<td><a href="https://github.com/w3c/aria-at/commit/" target="_blank"></a></td>
<td><a href="https://github.com/w3c/aria-at/commit/db93fd4" target="_blank">db93fd4 Generate test files again
</a></td>
</tr>
</table>

Expand Down
73 changes: 45 additions & 28 deletions review/checkbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,23 @@
cb.filter = cb.comboboxNode.value;
cb.filterOptions();
cb.open();
}, openMenuAndSetFocusToFirstItem: function(testPageDocument){
// opens the menu, and sets focus on 'Action 1'
testPageDocument.defaultView.menuController.openPopup();
testPageDocument.defaultView.menuController.setFocusToFirstMenuitem();
}, openMenuAndSetFocusToLastItem: function(testPageDocument){
// opens the menu, and sets focus on 'Action 4'
testPageDocument.defaultView.menuController.openPopup();
testPageDocument.defaultView.menuController.setFocusToLastMenuitem();
}, setFocusAfterMenuButton: function(testPageDocument){
// sets focus on a link after the menu button
testPageDocument.querySelector('#afterlink').focus();
}, setFocusBeforeMenuButton: function(testPageDocument){
// sets focus on a link before the menu button
testPageDocument.querySelector('#beforelink').focus();
}, setFocusOnMenuButton: function(testPageDocument){
// sets focus on the menu button
testPageDocument.querySelector('#menubutton1').focus();
}, focusonfirstlink: function(testPageDocument){
// Move focus to the link just before the meunbar
testPageDocument.querySelector('a').focus();
Expand Down Expand Up @@ -242,7 +259,7 @@ <h2>Test 1: Navigate to an unchecked checkbox in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-01-navigate-to-unchecked-checkbox-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -315,7 +332,7 @@ <h2>Test 2: Navigate to an unchecked checkbox in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-02-navigate-to-unchecked-checkbox-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -381,7 +398,7 @@ <h2>Test 3: Navigate to an unchecked checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-03-navigate-to-unchecked-checkbox-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -427,7 +444,7 @@ <h2>Test 4: Navigate to a checked checkbox in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-04-navigate-to-checked-checkbox-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -510,7 +527,7 @@ <h2>Test 5: Navigate to a checked checkbox in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-05-navigate-to-checked-checkbox-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -586,7 +603,7 @@ <h2>Test 6: Navigate to a checked checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-06-navigate-to-checked-checkbox-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -637,7 +654,7 @@ <h2>Test 7: Operate a checkbox in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-07-operate-checkbox-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -700,7 +717,7 @@ <h2>Test 8: Operate a checkbox in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-08-operate-checkbox-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -761,7 +778,7 @@ <h2>Test 9: Operate a checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-09-operate-checkbox-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -803,7 +820,7 @@ <h2>Test 10: Read an unchecked checkbox in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-10-read-unchecked-checkbox-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -881,7 +898,7 @@ <h2>Test 11: Read an unchecked checkbox in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-11-read-unchecked-checkbox-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -959,7 +976,7 @@ <h2>Test 12: Read an unchecked checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-12-read-unchecked-checkbox-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -1009,7 +1026,7 @@ <h2>Test 13: Read a checked checkbox in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-13-read-checked-checkbox-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1087,7 +1104,7 @@ <h2>Test 14: Read a checked checkbox in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-14-read-checked-checkbox-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1165,7 +1182,7 @@ <h2>Test 15: Read a checked checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-15-read-checked-checkbox-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -1215,7 +1232,7 @@ <h2>Test 16: Read grouping information of a grouped checkbox in reading mode</h2
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-16-read-checkbox-group-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1279,7 +1296,7 @@ <h2>Test 17: Read grouping information of a grouped checkbox in interaction mode
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-17-read-checkbox-group-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1343,7 +1360,7 @@ <h2>Test 18: Read grouping information of a grouped checkbox</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-18-read-checkbox-group-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -1387,7 +1404,7 @@ <h2>Test 19: Navigate sequentially through a checkbox group in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-19-navigate-sequentially-through-checkbox-group-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1456,7 +1473,7 @@ <h2>Test 20: Navigate sequentially through a checkbox group</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-20-navigate-sequentially-through-checkbox-group-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -1502,7 +1519,7 @@ <h2>Test 21: Navigate into a checkbox group in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-21-navigate-into-checkbox-group-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1533,7 +1550,7 @@ <h4>Tester Instructions</h4>
<li>X</li>
<li>Shift+X</li>
<li>F</li>
<li>F &#x2F; Shift+F</li>
<li>Shift+F</li>
<li>Tab</li>
<li>Shift+Tab</li>
</ul>
Expand All @@ -1559,7 +1576,7 @@ <h4>Tester Instructions</h4>
<li>X</li>
<li>Shift+X</li>
<li>F</li>
<li>F &#x2F; Shift+F</li>
<li>Shift+F</li>
<li>Tab</li>
<li>Shift+Tab</li>
</ul>
Expand All @@ -1579,7 +1596,7 @@ <h2>Test 22: Navigate into a checkbox group in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-22-navigate-into-checkbox-group-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1648,7 +1665,7 @@ <h2>Test 23: Navigate into a checkbox group</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-23-navigate-into-checkbox-group-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down Expand Up @@ -1698,7 +1715,7 @@ <h2>Test 24: Navigate out of a checkbox group in reading mode</h2>
<ul>
<li>Mode: reading</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-24-navigate-out-of-checkbox-group-reading.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1767,7 +1784,7 @@ <h2>Test 25: Navigate out of a checkbox group in interaction mode</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: jaws, nvda</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-25-navigate-out-of-checkbox-group-interaction.html?at=jaws">jaws</a></li>
Expand Down Expand Up @@ -1836,7 +1853,7 @@ <h2>Test 26: Navigate out of a checkbox group</h2>
<ul>
<li>Mode: interaction</li>
<li>Applies to: voiceover_macos</li>
<li>Lasted edited: Mon Feb 15 17:25:34 2021 -0600</li>
<li>Lasted edited: Tue Mar 9 17:49:35 2021 -0600</li>
<li>Tests:
<ul>
<li><a href="../tests/checkbox/test-26-navigate-out-of-checkbox-group-interaction.html?at=voiceover_macos">voiceover_macos</a></li>
Expand Down
Loading

0 comments on commit 9646312

Please sign in to comment.