blob: f59c119a1aaf464601b123b75b51254c50b7cb42 [file] [log] [blame]
dmazzoni@google.comf2fbdee2011-11-12 04:23:59 +00001<html>
2<head>
ap@apple.comfcade892017-05-19 23:37:59 +00003<script src="../resources/js-test.js"></script>
dmazzoni@google.comf2fbdee2011-11-12 04:23:59 +00004<script>
ap@apple.comfcade892017-05-19 23:37:59 +00005 jsTestIsAsync = true;
dmazzoni@google.comf2fbdee2011-11-12 04:23:59 +00006
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
ap@apple.comfcade892017-05-19 23:37:59 +000019 finishJSTest();
dmazzoni@google.comf2fbdee2011-11-12 04:23:59 +000020 }
21
rniwa@webkit.org3526ecc32012-06-12 20:37:15 +000022 if (window.testRunner && window.accessibilityController) {
dmazzoni@google.comf2fbdee2011-11-12 04:23:59 +000023 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
33End of test.
34
35<p id="description"></p>
36<div id="console"></div>
37
38</body>
39</html>