1 <!DOCTYPE HTML PUBLIC
"-//IETF//DTD HTML//EN">
4 <script src=
"../resources/js-test.js"></script>
8 <div id=
"container" aria-label=
"container">
10 <table border=
1 summary=
"test" aria-hidden=
"true">
11 <tr><td>cell
</td><td>cell
</td><td>cell
</td></tr>
12 <tr><td>cell
</td><td>cell
</td><td>cell
</td></tr>
15 <div role=
"grid" aria-hidden=
"true">
16 <div role=
"row"><div role=
"gridcell">cell
</div></div>
19 <ul aria-hidden=
"true">
24 <div aria-label=
"wrapper">
25 <select size=
10 aria-hidden=
"true">
35 <p id=
"description"></p>
36 <div id=
"console"></div>
40 description("This tests that aria-hidden works as expected on elements that are subclasses of AccessibilityRenderObject");
42 if (window
.accessibilityController
) {
43 var container
= accessibilityController
.accessibleElementById("container");
45 // first child is an AXGroup that has no children
46 var child
= container
.childAtIndex(0);
47 shouldBe("child.childrenCount", "0");
49 // The second child we ask for from the web area should be the heading, and we should have skipped over everything else.
50 child
= container
.childAtIndex(1);
51 shouldBe("child.role", "'AXRole: AXHeading'");