Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / aria-hidden-with-elements.html
blob58a312cdf9165639f33806834082ba31c4c96a7f
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test.js"></script>
5 </head>
6 <body id="body">
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>
13 </table>
15 <div role="grid" aria-hidden="true">
16 <div role="row"><div role="gridcell">cell</div></div>
17 </div>
19 <ul aria-hidden="true">
20 <li>test
21 <li>test
22 </ul>
24 <div aria-label="wrapper">
25 <select size=10 aria-hidden="true">
26 <option>option
27 <option>option
28 </select>
29 </div>
31 <h1>heading</h1>
33 </div>
35 <p id="description"></p>
36 <div id="console"></div>
38 <script>
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'");
54 </script>
56 </body>
57 </html>