Skip to content

Commit

Permalink
more test cases #1472
Browse files Browse the repository at this point in the history
  • Loading branch information
shunguoy committed Aug 29, 2023
1 parent 4f75e87 commit 2cc0c79
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,21 @@
<caption>Column Headers in first cells</caption>
<tr>
<th scope="row">Header 1</th>
<td>data</td><td>data</td><td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
<tr>
<th scope="row">Header 2</th>
<td>data</td><td>data</td><td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
<tr>
<th scope="row">Header 2</th>
<td>data</td><td>data</td><td>data</td>
<td>data</td>
<td>data</td>
<td>data</td>
</tr>
<tfoot>
<tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<!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>
<th>row Header 1</th>
<td>data</td>
<td>data</td>
</tr>
<tr>

<td>data</td>
<th>row Header 2</th>
<td>data</td>
<td>data</td>
</tr>
<tr>

<td>data</td>
<th>row Header 3</th>
<td>data</td>
<td>data</td>
</tr>
<tfoot>
<tr>
<td colspan="3">Footer</td>
</tr>
</tfoot>
</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>
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
<!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>data</td>
<td>data</td>
<th>row Header 1</th>

</tr>
<tr>

<td>data</td>
<td>data</td>
<td>data</td>
<th>row Header 2</th>

</tr>
<tr>

<td>data</td>
<td>data</td>
<td>data</td>
<th>row Header 3</th>
</tr>
<tfoot>
<tr>
<td colspan="3">Footer</td>
</tr>
</tfoot>
</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>

0 comments on commit 2cc0c79

Please sign in to comment.