1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../resources/js-test-pre.js"></script>
11 <div role="grid" id="table">
12 <div role="presentational" aria-label="hello">
13 <div role="presentational" aria-haspopup="true">
15 <div role="gridcell">hello</div>
16 <div role="gridcell">hello</div>
17 <div role="gridcell">hello</div>
25 <p id="description"></p>
26 <div id="console"></div>
29 description("This tests that in an aria table a row will report its parent as the table.");
31 if (window.accessibilityController) {
32 var table = accessibilityController.accessibleElementById("table");
33 var row = table.rowAtIndex(0);
34 shouldBe("row.role", "'AXRole: AXRow'");
35 shouldBe("row.parentElement().role", "'AXRole: AXTable'");
37 document.getElementById("content").style.visibility = "hidden";
41 <script src="../resources/js-test-post.js"></script>