Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / aria-inherits-presentational.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <script>
4     function dumpAccessibilityChildren(element, level) {
5         if (element.stringValue.indexOf('End of test') >= 0)
6             return false;
7
8         var indent = "";
9         for (var k = 0; k < level; k++) { indent += "  "; }
10         debug(indent + element.role + " " + element.stringValue);
11         var childrenCount = element.childrenCount;
12         for (var k = 0; k < childrenCount; k++) {
13             if (!dumpAccessibilityChildren(element.childAtIndex(k), level+1))
14                 return false;
15         }
16         return true;
17     }
18 </script>
19 <head>
20 <script src="../resources/js-test-pre.js"></script>
21 </head>
22 <body id="body">
23 <ul role="presentation" style="list-style-type: none;"><li>item 0</li><li>item 1</li></ul>
24 <table role="presentation"><tr><td>item 2</td><td>item 3</td></tr></table>
25 <div>End of test</div>
26 <p id="description"></p>
27 <div id="console"></div>
28 <script>
29     description("This tests the hierarchy for required child elements of presentational parents.");
30     if (window.accessibilityController) {
31         document.getElementById("body").focus();
32         dumpAccessibilityChildren(accessibilityController.focusedElement, 0);
33     }
34 </script>
35 <script src="../resources/js-test-post.js"></script>
36 </body>
37 </html>