-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create updated tests for APG design pattern example: checkbox
Part of #443
- Loading branch information
Showing
7 changed files
with
56 additions
and
31 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
3 changes: 3 additions & 0 deletions
3
tests/checkbox/data/js/moveFocusAfterAndCheckFirstCheckbox.js
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,3 @@ | ||
// Move focus to link after first checkbox and set aria-checked on first checkbox | ||
testPageDocument.querySelector('#afterlink').focus(); | ||
testPageDocument.querySelector('[role="checkbox"]').setAttribute('aria-checked', 'true'); |
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,2 @@ | ||
// Move focus to link after first checkbox | ||
testPageDocument.querySelector('#afterlink').focus(); |
3 changes: 3 additions & 0 deletions
3
tests/checkbox/data/js/moveFocusBeforeAndCheckFirstCheckbox.js
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,3 @@ | ||
// Move focus to link before first checkbox and set aria-checked on first checkbox | ||
testPageDocument.querySelector('#beforelink').focus(); | ||
testPageDocument.querySelector('[role="checkbox"]').setAttribute('aria-checked', 'true'); |
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,2 @@ | ||
// Move focus to link before first checkbox | ||
testPageDocument.querySelector('#beforelink').focus(); |
Large diffs are not rendered by default.
Oops, something went wrong.
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