-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ali-deprecating_Rpt_Aria_MultipleGroupRole…
…s_Implicit
- Loading branch information
Showing
14 changed files
with
631 additions
and
37 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
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
39 changes: 39 additions & 0 deletions
39
...2/checker/accessibility/rules/WCAG20_Input_ExplicitLabel_ruleunit/listbox-label-fail.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,39 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<ul role="listbox" tabindex="0" aria-activedescendant="first"> | ||
<li id="first" role="option" aria-selected="true">First</li> | ||
<li id="second" role="option" aria-selected="false">Second</li> | ||
<li id="third" role="option" aria-selected="false">Third</li> | ||
</ul> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["WCAG20_Input_ExplicitLabel"], | ||
results: [ | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]", | ||
"aria": "/document[1]/listbox[1]" | ||
}, | ||
"reasonId": "Fail_2", | ||
"message": "Form control with \"listbox\" role has no associated label", | ||
"messageArgs": [ | ||
"listbox" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
37 changes: 37 additions & 0 deletions
37
...est/v2/checker/accessibility/rules/WCAG20_Input_ExplicitLabel_ruleunit/listbox-label.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,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<ul role="listbox" tabindex="0" aria-activedescendant="first" aria-label='my box'> | ||
<li id="first" role="option" aria-selected="true">First</li> | ||
<li id="second" role="option" aria-selected="false">Second</li> | ||
<li id="third" role="option" aria-selected="false">Third</li> | ||
</ul> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["WCAG20_Input_ExplicitLabel"], | ||
results: [ | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]", | ||
"aria": "/document[1]/listbox[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
39 changes: 39 additions & 0 deletions
39
.../accessibility/rules/WCAG20_Input_ExplicitLabel_ruleunit/menuitemcheckbox-label-fail.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,39 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<ul role='menu' tabindex='0' aria-activedescendant='first'> | ||
<li id='first' role='menuitem' tabindex='-1'>First</li> | ||
<li id='second' role='menuitem' >Second</li> | ||
<li id='third' role='menuitemcheckbox' aria-checked='true'> </li> | ||
</ul> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["WCAG20_Input_ExplicitLabel"], | ||
results: [ | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]/li[3]", | ||
"aria": "/document[1]/menu[1]/menuitemcheckbox[1]" | ||
}, | ||
"reasonId": "Fail_2", | ||
"message": "Form control with \"menuitemcheckbox\" role has no associated label", | ||
"messageArgs": [ | ||
"menuitemcheckbox" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
37 changes: 37 additions & 0 deletions
37
...ecker/accessibility/rules/WCAG20_Input_ExplicitLabel_ruleunit/menuitemcheckbox-label.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,37 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<ul role='menu' tabindex='0' aria-activedescendant='first'> | ||
<li id='first' role='menuitem' tabindex='-1'>First</li> | ||
<li id='second' role='menuitem' >Second</li> | ||
<li id='third' role='menuitemcheckbox' aria-checked='true'>Third</li> | ||
</ul> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["WCAG20_Input_ExplicitLabel"], | ||
results: [ | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]/li[3]", | ||
"aria": "/document[1]/menu[1]/menuitemcheckbox[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
71 changes: 71 additions & 0 deletions
71
...ker/accessibility/rules/WCAG20_Input_ExplicitLabel_ruleunit/menuitemradio-label-fail.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,71 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<ul role='menu' tabindex='0' aria-activedescendant='first'> | ||
<li id='first' role='menuitemradio' aria-checked='true'>First</li> | ||
<li id='second' role='menuitemradio' aria-checked='false'>Second</li> | ||
<li id='third' role='menuitemradio' aria-checked='false'> </li> | ||
</ul> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["WCAG20_Input_ExplicitLabel"], | ||
results: [ | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]/li[1]", | ||
"aria": "/document[1]/menu[1]/menuitemradio[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]/li[2]", | ||
"aria": "/document[1]/menu[1]/menuitemradio[2]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
}, | ||
{ | ||
"ruleId": "WCAG20_Input_ExplicitLabel", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/ul[1]/li[3]", | ||
"aria": "/document[1]/menu[1]/menuitemradio[3]" | ||
}, | ||
"reasonId": "Fail_2", | ||
"message": "Form control with \"menuitemradio\" role has no associated label", | ||
"messageArgs": [ | ||
"menuitemradio" | ||
], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
Oops, something went wrong.