1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
4 <script src="../fast/js/resources/js-test-pre.js"></script>
8 <table border=1 summary="test" aria-hidden="true">
9 <tr><td>cell</td><td>cell</td><td>cell</td></tr>
10 <tr><td>cell</td><td>cell</td><td>cell</td></tr>
13 <div role="grid" aria-hidden="true">
14 <div role="row"><div role="gridcell">cell</div></div>
17 <ul aria-hidden="true">
22 <select size=10 aria-hidden="true">
29 <p id="description"></p>
30 <div id="console"></div>
34 description("This tests that aria-hidden works as expected on elements that are subclasses of AccessibilityRenderObject");
36 if (window.accessibilityController) {
37 var root = accessibilityController.rootElement;
39 // first child is an AXGroup that has no children
40 var child = root.childAtIndex(0).childAtIndex(0);
41 shouldBe("child.childrenCount", "0");
43 // The second child we ask for from the web area should be the heading, and we should have skipped over everything else.
44 child = root.childAtIndex(0).childAtIndex(1);
45 shouldBe("child.role", "'AXRole: AXHeading'");
50 <script src="../fast/js/resources/js-test-post.js"></script>