-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update the rule and test results #1472
- Loading branch information
Showing
10 changed files
with
261 additions
and
38 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
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
76 changes: 76 additions & 0 deletions
76
...cker/accessibility/rules/table_headers_exists_ruleunit/table_headers_row_association.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,76 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> | ||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
|
||
<style type="text/css"> | ||
#vertical-1 thead,#vertical-1 tbody, th, td, tfoot { | ||
border: 1px solid black; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table id="vertical-1"> | ||
<caption>Column Headers in first cells</caption> | ||
<tr> | ||
<td headers="row1">data</td> | ||
<td headers="row1">data</td> | ||
<th id="row1">Header 1</th> | ||
<td headers="row1">data</td> | ||
</tr> | ||
<tr> | ||
<td headers="row2">data</td> | ||
<td headers="row2">data</td> | ||
<th id="row2">Header 2</th> | ||
<td headers="row2">data</td> | ||
</tr> | ||
<tr> | ||
<td headers="row3">data</td> | ||
<td headers="row3">data</td> | ||
<th id="row3">Header 2</th> | ||
<td headers="row3">data</td> | ||
</tr> | ||
</table> | ||
<script> | ||
UnitTest = { | ||
ruleIds: ["table_headers_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "table_headers_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"PASS" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/table[1]", | ||
"aria": "/document[1]/table[1]" | ||
}, | ||
"reasonId": "Pass_0", | ||
"message": "Rule Passed", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |
76 changes: 76 additions & 0 deletions
76
...essibility/rules/table_headers_exists_ruleunit/table_headers_row_association_missing.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,76 @@ | ||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> | ||
<!-- | ||
/****************************************************************************** | ||
Copyright:: 2020- IBM, Inc | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
*****************************************************************************/ | ||
--> | ||
|
||
<head> | ||
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
|
||
<style type="text/css"> | ||
#vertical-1 thead,#vertical-1 tbody, th, td, tfoot { | ||
border: 1px solid black; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<table id="vertical-1"> | ||
<caption>Column Headers in first cells</caption> | ||
<tr> | ||
<td>data</td> | ||
<td headers="row1">data</td> | ||
<th id="row1">Header 1</th> | ||
<td headers="row1">data</td> | ||
</tr> | ||
<tr> | ||
<td headers="row2">data</td> | ||
<td headers="row2">data</td> | ||
<th id="row2">Header 2</th> | ||
<td headers="row2">data</td> | ||
</tr> | ||
<tr> | ||
<td headers="row3">data</td> | ||
<td headers="row3">data</td> | ||
<th id="row3">Header 2</th> | ||
<td headers="row3">data</td> | ||
</tr> | ||
</table> | ||
<script> | ||
UnitTest = { | ||
ruleIds: ["table_headers_exists"], | ||
results: [ | ||
{ | ||
"ruleId": "table_headers_exists", | ||
"value": [ | ||
"INFORMATION", | ||
"FAIL" | ||
], | ||
"path": { | ||
"dom": "/html[1]/body[1]/table[1]", | ||
"aria": "/document[1]/table[1]" | ||
}, | ||
"reasonId": "Fail_1", | ||
"message": "Table has no headers identified", | ||
"messageArgs": [], | ||
"apiArgs": [], | ||
"category": "Accessibility" | ||
} | ||
] | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |
Oops, something went wrong.