OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../resources/js-test.js"></script> |
| 5 </head> |
| 6 <body id="body"> |
| 7 |
| 8 <table id="table1"> |
| 9 <thead> |
| 10 <tr> |
| 11 <th>No</th> |
| 12 <th>Month</th> |
| 13 <th>Expenses</th> |
| 14 </tr> |
| 15 </thead> |
| 16 <tbody> |
| 17 <tr> |
| 18 <th>1</th> |
| 19 <td>Jan</td> |
| 20 <td>100</td> |
| 21 </tr> |
| 22 <tr> |
| 23 <th>2</th> |
| 24 <td>Feb</td> |
| 25 <td>150</td> |
| 26 </tr> |
| 27 <tr> |
| 28 <th>3</th> |
| 29 <td>Mar</td> |
| 30 <td>200</td> |
| 31 </tr> |
| 32 </tbody> |
| 33 </table> |
| 34 |
| 35 <p id="description"></p> |
| 36 <div id="console"></div> |
| 37 |
| 38 <script> |
| 39 |
| 40 description("Check whether column and row headers are reported correctly"); |
| 41 |
| 42 if (window.accessibilityController) { |
| 43 var table = accessibilityController.accessibleElementById("table1"); |
| 44 // Row headers |
| 45 shouldBeTrue("table.rowHeaderAtIndex(0).isEqual(table.cellForColumnAndRo
w(0, 0))"); |
| 46 shouldBeTrue("table.rowHeaderAtIndex(1).isEqual(table.cellForColumnAndRo
w(0, 1))"); |
| 47 shouldBeTrue("table.rowHeaderAtIndex(2).isEqual(table.cellForColumnAndRo
w(0, 2))"); |
| 48 shouldBeTrue("table.rowHeaderAtIndex(3).isEqual(table.cellForColumnAndRo
w(0, 3))"); |
| 49 |
| 50 // Column headers |
| 51 shouldBeTrue("table.columnHeaderAtIndex(0).isEqual(table.cellForColumnAn
dRow(0, 0))"); |
| 52 shouldBeTrue("table.columnHeaderAtIndex(1).isEqual(table.cellForColumnAn
dRow(1, 0))"); |
| 53 shouldBeTrue("table.columnHeaderAtIndex(2).isEqual(table.cellForColumnAn
dRow(2, 0))"); |
| 54 } |
| 55 |
| 56 </script> |
| 57 |
| 58 </body> |
| 59 </html> |
OLD | NEW |