Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / double-nested-inline-element-missing-from-tree.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 <script>
6     function dumpAccessibilityChildren(element, level) {
7         if (element.stringValue.indexOf('End of test') >= 0)
8             return false;
9
10         var indent = "";
11         for (var k = 0; k < level; k++) { indent += "  "; }
12         debug(indent + element.role + " " + element.stringValue);
13         var childrenCount = element.childrenCount;
14         for (var k = 0; k < childrenCount; k++) {
15             if (!dumpAccessibilityChildren(element.childAtIndex(k), level+1))
16                 return false;
17         }
18         return true;
19     }
20 </script>
21 </head>
22
23 <body id="body">
24
25 <span>
26     <span>
27         test1
28         <div></div>
29     </span><div>
30     test2
31     </div>
32 </span>
33
34 <div>End of test</div>
35 <p id="description"></p>
36 <div id="console"></div>
37 <script>
38     if (window.accessibilityController) {
39         description("This tests that when you have a two nested inline continuations and the child one has no siblings, that we go back to the parent to check for its continuation.");
40
41         var content = accessibilityController.rootElement.childAtIndex(0);
42         dumpAccessibilityChildren(content, 0);
43     }
44     successfullyParsed = true;
45 </script>
46
47 <script src="../resources/js-test-post.js"></script>
48 </body>
49 </html>