Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / anonymous-render-block-in-continuation-causes-crash.html
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 <script>
5     jsTestIsAsync = true;
6
7     function walkAccessibilityTree(accessibilityObject) {
8         var count = accessibilityObject.childrenCount;
9         for (var i = 0; i < count; ++i)
10             walkAccessibilityTree(accessibilityObject.childAtIndex(i));
11     }
12
13     function runTest() {
14         description("This tests that having an anonymous render block in a continuation doesn't cause a crash when walking the accessibility tree.");
15
16         window.root = accessibilityController.rootElement;
17         walkAccessibilityTree(root);
18
19         finishJSTest();
20     }
21
22     if (window.testRunner && window.accessibilityController) {
23         window.addEventListener('load', function() {
24             setTimeout(runTest, 10);
25         }, false);
26     }
27 </script>
28 </head>
29 <body>
30
31 <li><span>x<ul><li>y</ul></span>z</li>
32
33 End of test.
34
35 <p id="description"></p>
36 <div id="console"></div>
37
38 </body>
39 </html>