| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> | 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../resources/js-test.js"></script> | 4 <script src="../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body id="body"> | 6 <body id="body"> |
| 7 | 7 |
| 8 <table id="table1" border="1"> | 8 <table id="table1" border="1"> |
| 9 <thead> | 9 <thead> |
| 10 <tr> | 10 <tr> |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 <tr> | 125 <tr> |
| 126 <th colspan="2" scope="colgroup">col head</th> | 126 <th colspan="2" scope="colgroup">col head</th> |
| 127 <th>col head</th> | 127 <th>col head</th> |
| 128 </tr> | 128 </tr> |
| 129 <tr> | 129 <tr> |
| 130 <td>data</td> | 130 <td>data</td> |
| 131 <td>data</td> | 131 <td>data</td> |
| 132 <th>row head</td> | 132 <th>row head</td> |
| 133 </tr> | 133 </tr> |
| 134 </table> | 134 </table> |
| 135 | 135 <div id="table7" role="grid"> |
| 136 <div role="row"> |
| 137 <div role="columnheader">col head</div> |
| 138 <div role="columnheader">col head</div> |
| 139 <div role="columnheader">col head</div> |
| 140 </div> |
| 141 <div role="row"> |
| 142 <div role="rowheader">row head</div> |
| 143 <div role="gridcell">data</div> |
| 144 <div role="rowheader">row head</div> |
| 145 </div> |
| 146 <div role="row"> |
| 147 <div role="rowheader">row head</div> |
| 148 <div role="rowheader">row head</div> |
| 149 <div role="columnheader">col head</div> |
| 150 </div> |
| 151 </div> |
| 136 <p id="description"></p> | 152 <p id="description"></p> |
| 137 <div id="console"></div> | 153 <div id="console"></div> |
| 138 | 154 |
| 139 <script> | 155 <script> |
| 140 | 156 |
| 141 description("Check whether column and row headers are reported correctly"); | 157 description("Check whether column and row headers are reported correctly"); |
| 142 | 158 |
| 143 if (window.accessibilityController) { | 159 if (window.accessibilityController) { |
| 144 var table = accessibilityController.accessibleElementById("table1"); | 160 var table = accessibilityController.accessibleElementById("table1"); |
| 145 // Row headers | 161 // Row headers |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 shouldBeTrue("table6.rowHeaderAtIndex(0).isEqual(table6.cellForColumnAnd
Row(2, 3))"); | 219 shouldBeTrue("table6.rowHeaderAtIndex(0).isEqual(table6.cellForColumnAnd
Row(2, 3))"); |
| 204 shouldBe("table6.rowHeadersCount", "1"); | 220 shouldBe("table6.rowHeadersCount", "1"); |
| 205 // Column headers | 221 // Column headers |
| 206 shouldBeTrue("table6.columnHeaderAtIndex(0).isEqual(table6.cellForColumn
AndRow(0, 0))"); | 222 shouldBeTrue("table6.columnHeaderAtIndex(0).isEqual(table6.cellForColumn
AndRow(0, 0))"); |
| 207 shouldBeTrue("table6.columnHeaderAtIndex(1).isEqual(table6.cellForColumn
AndRow(0, 2))"); // colspan=2 | 223 shouldBeTrue("table6.columnHeaderAtIndex(1).isEqual(table6.cellForColumn
AndRow(0, 2))"); // colspan=2 |
| 208 shouldBeTrue("table6.columnHeaderAtIndex(1).isEqual(table6.cellForColumn
AndRow(1, 2))"); // colspan=2 | 224 shouldBeTrue("table6.columnHeaderAtIndex(1).isEqual(table6.cellForColumn
AndRow(1, 2))"); // colspan=2 |
| 209 shouldBeTrue("table6.columnHeaderAtIndex(2).isEqual(table6.cellForColumn
AndRow(1, 0))"); | 225 shouldBeTrue("table6.columnHeaderAtIndex(2).isEqual(table6.cellForColumn
AndRow(1, 0))"); |
| 210 shouldBeTrue("table6.columnHeaderAtIndex(3).isEqual(table6.cellForColumn
AndRow(2, 0))"); | 226 shouldBeTrue("table6.columnHeaderAtIndex(3).isEqual(table6.cellForColumn
AndRow(2, 0))"); |
| 211 shouldBeTrue("table6.columnHeaderAtIndex(4).isEqual(table6.cellForColumn
AndRow(2, 2))"); | 227 shouldBeTrue("table6.columnHeaderAtIndex(4).isEqual(table6.cellForColumn
AndRow(2, 2))"); |
| 212 shouldBe("table6.columnHeadersCount", "5"); | 228 shouldBe("table6.columnHeadersCount", "5"); |
| 229 |
| 230 //Aria tables |
| 231 var table7 = accessibilityController.accessibleElementById("table7"); |
| 232 // Row headers |
| 233 shouldBeTrue("table7.rowHeaderAtIndex(0).isEqual(table7.cellForColumnAnd
Row(0, 1))"); |
| 234 shouldBeTrue("table7.rowHeaderAtIndex(1).isEqual(table7.cellForColumnAnd
Row(2, 1))"); |
| 235 shouldBeTrue("table7.rowHeaderAtIndex(2).isEqual(table7.cellForColumnAnd
Row(0, 2))"); |
| 236 shouldBeTrue("table7.rowHeaderAtIndex(3).isEqual(table7.cellForColumnAnd
Row(1, 2))"); |
| 237 shouldBe("table7.rowHeadersCount", "4"); |
| 238 // Column headers |
| 239 shouldBeTrue("table7.columnHeaderAtIndex(0).isEqual(table7.cellForColumn
AndRow(0, 0))"); |
| 240 shouldBeTrue("table7.columnHeaderAtIndex(1).isEqual(table7.cellForColumn
AndRow(1, 0))"); |
| 241 shouldBeTrue("table7.columnHeaderAtIndex(2).isEqual(table7.cellForColumn
AndRow(2, 0))"); |
| 242 shouldBeTrue("table7.columnHeaderAtIndex(3).isEqual(table7.cellForColumn
AndRow(2, 2))"); |
| 243 shouldBe("table7.columnHeadersCount", "4"); |
| 213 } | 244 } |
| 214 | 245 |
| 215 </script> | 246 </script> |
| 216 | 247 |
| 217 </body> | 248 </body> |
| 218 </html> | 249 </html> |
| OLD | NEW |