Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-hidden-with-elements.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div id="container" aria-label="container">
9
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>
14
15 <div role="grid" aria-hidden="true">
16 <div role="row"><div role="gridcell">cell</div></div>
17 </div>
18
19 <ul aria-hidden="true">
20 <li>test
21 <li>test
22 </ul>
23
24 <div aria-label="wrapper">
25 <select size=10 aria-hidden="true">
26 <option>option
27 <option>option
28 </select>
29 </div>
30
31 <h1>heading</h1>
32
33 </div>
34
35 <p id="description"></p>
36 <div id="console"></div>
37
38 <script>
39
40     description("This tests that aria-hidden works as expected on elements that are subclasses of AccessibilityRenderObject");
41
42     if (window.accessibilityController) {
43        var container = accessibilityController.accessibleElementById("container");
44
45        // first child is an AXGroup that has no children
46        var child = container.childAtIndex(0);
47        shouldBe("child.childrenCount", "0");
48
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        debug("child.role is " + child.role);
52     }
53
54 </script>
55
56 <script src="../resources/js-test-post.js"></script>
57 </body>
58 </html>