| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <script src="../resources/testharness.js"></script> | 2 <script src="../resources/testharness.js"></script> |
| 3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../resources/testharnessreport.js"></script> |
| 4 | 4 |
| 5 <div id="container"> | 5 <div id="container"> |
| 6 <table id="table1" role="grid"> | 6 <table id="table1" role="grid"> |
| 7 <tr> | 7 <tr> |
| 8 <td>1, 1</td><td>2, 1</td> | 8 <td>1, 1</td><td>2, 1</td> |
| 9 </tr> | 9 </tr> |
| 10 <tr> | 10 <tr> |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 <td role="gridcell">1, 1</td><td role="gridcell">2, 1</td> | 29 <td role="gridcell">1, 1</td><td role="gridcell">2, 1</td> |
| 30 </tr> | 30 </tr> |
| 31 </table> | 31 </table> |
| 32 </div> | 32 </div> |
| 33 | 33 |
| 34 <div id="console"></div> | 34 <div id="console"></div> |
| 35 | 35 |
| 36 <script> | 36 <script> |
| 37 test(function(t) { | 37 test(function(t) { |
| 38 var axTable = accessibilityController.accessibleElementById('table1'); | 38 var axTable = accessibilityController.accessibleElementById('table1'); |
| 39 assert_equals(axTable.role, "AXRole: AXTable"); | 39 assert_equals(axTable.role, "AXRole: AXGrid"); |
| 40 | 40 |
| 41 assert_equals(axTable.rowCount, 2); | 41 assert_equals(axTable.rowCount, 2); |
| 42 assert_equals(axTable.columnCount, 2); | 42 assert_equals(axTable.columnCount, 2); |
| 43 }, "Test table with ARIA grid role on just table element."); | 43 }, "Test table with ARIA grid role on just table element."); |
| 44 | 44 |
| 45 test(function(t) { | 45 test(function(t) { |
| 46 var axTable = accessibilityController.accessibleElementById('table2'); | 46 var axTable = accessibilityController.accessibleElementById('table2'); |
| 47 assert_equals(axTable.role, "AXRole: AXTable"); | 47 assert_equals(axTable.role, "AXRole: AXGrid"); |
| 48 | 48 |
| 49 assert_equals(axTable.rowCount, 2); | 49 assert_equals(axTable.rowCount, 2); |
| 50 assert_equals(axTable.columnCount, 2); | 50 assert_equals(axTable.columnCount, 2); |
| 51 }, "Test table with ARIA grid role on table and row role on rows."); | 51 }, "Test table with ARIA grid role on table and row role on rows."); |
| 52 | 52 |
| 53 test(function(t) { | 53 test(function(t) { |
| 54 var axTable = accessibilityController.accessibleElementById('table3'); | 54 var axTable = accessibilityController.accessibleElementById('table3'); |
| 55 assert_equals(axTable.role, "AXRole: AXTable"); | 55 assert_equals(axTable.role, "AXRole: AXGrid"); |
| 56 | 56 |
| 57 assert_equals(axTable.rowCount, 2); | 57 assert_equals(axTable.rowCount, 2); |
| 58 assert_equals(axTable.columnCount, 2); | 58 assert_equals(axTable.columnCount, 2); |
| 59 }, "Test table with ARIA grid roles on all elements."); | 59 }, "Test table with ARIA grid roles on all elements."); |
| 60 | 60 |
| 61 if (window.testRunner) | 61 if (window.testRunner) |
| 62 document.getElementById("container").style.display = "none"; | 62 document.getElementById("container").style.display = "none"; |
| 63 </script> | 63 </script> |
| OLD | NEW |