| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <div role="grid" id="table"> |
| <div role="presentational" aria-label="hello"> |
| <div role="presentational" aria-haspopup="true"> |
| <div role="gridcell">hello</div> |
| <div role="gridcell">hello</div> |
| <div role="gridcell">hello</div> |
| description("This tests that in an aria table a row will report its parent as the table."); |
| if (window.accessibilityController) { |
| var table = accessibilityController.accessibleElementById("table"); |
| var row = table.rowAtIndex(0); |
| shouldBe("row.role", "'AXRole: AXRow'"); |
| shouldBe("row.parentElement().role", "'AXRole: AXTable'"); |
| document.getElementById("content").style.visibility = "hidden"; |
| <script src="../resources/js-test-post.js"></script> |