-
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 'dev-2122-new' into dev-2122-v4
Merge from dev-2122-new to dev-2122-v4
- Loading branch information
Showing
6 changed files
with
102 additions
and
9 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
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
40 changes: 40 additions & 0 deletions
40
...ne/test/v2/checker/accessibility/rules/label_name_visible_ruleunit/button-label-pass.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,40 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<title>Test case</title> | ||
</head> | ||
<body> | ||
<button | ||
aria-expanded="false" | ||
aria-controls="id-:re:" | ||
aria-label="AI Text goes here" | ||
type="button"> | ||
<span class="cds--ai-label__text">AI</span> | ||
<span class="cds--ai-label__additional-text">Text goes here</span> | ||
</button> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["label_name_visible"], | ||
results: [ | ||
{ | ||
"ruleId": "label_name_visible", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/button[1]", | ||
"aria": "/document[1]/button[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Accessible name matches or contains the visible label text", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
</html> |
46 changes: 46 additions & 0 deletions
46
...e/test/v2/checker/accessibility/rules/label_name_visible_ruleunit/button-label-pass2.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,46 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Test case</title> | ||
</head> | ||
|
||
<body> | ||
<button type="button" id="count-badge-1-button" title="Click here to see notification. 2 Notification available." | ||
aria-label="Click here to see notification. 2 Notification available."> <span> <svg width="24" height="24" | ||
xmlns="http://www.w3.org/2000/svg" aria-hidden="true" color="primary" viewBox="0 0 24 24" | ||
style="width: 24px; height: 24px"> | ||
<g fill="none" fill-rule="evenodd"> | ||
<path d="M0 0h24v24H0z"></path> | ||
<path | ||
d="M16 16.5H8v-6C8 8.02 9.51 6 12 6s4 2.02 4 4.5v6zm2 0v-6c0-3.07-1.63-5.64-4.5-6.32V3.5c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.64 4.86 6 7.42 6 10.5v6H4.99a.99.99 0 00-.99.99v.02c0 .547.443.99.99.99h14.02a.99.99 0 00.99-.99v-.02a.99.99 0 00-.99-.99H18zm-6 5c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2z" | ||
fill="#000"></path> | ||
</g> | ||
</svg><span>2</span></span> Notification</button> | ||
|
||
<script> | ||
UnitTest = { | ||
ruleIds: ["label_name_visible"], | ||
results: [ | ||
{ | ||
"ruleId": "label_name_visible", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/button[1]", | ||
"aria": "/document[1]/button[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Accessible name matches or contains the visible label text", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
</body> | ||
|
||
</html> |