dmazzoni@google.com | f2fbdee | 2011-11-12 04:23:59 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <head> |
ap@apple.com | fcade89 | 2017-05-19 23:37:59 +0000 | [diff] [blame] | 3 | <script src="../resources/js-test.js"></script> |
dmazzoni@google.com | f2fbdee | 2011-11-12 04:23:59 +0000 | [diff] [blame] | 4 | <script> |
ap@apple.com | fcade89 | 2017-05-19 23:37:59 +0000 | [diff] [blame] | 5 | jsTestIsAsync = true; |
dmazzoni@google.com | f2fbdee | 2011-11-12 04:23:59 +0000 | [diff] [blame] | 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 | |
ap@apple.com | fcade89 | 2017-05-19 23:37:59 +0000 | [diff] [blame] | 19 | finishJSTest(); |
dmazzoni@google.com | f2fbdee | 2011-11-12 04:23:59 +0000 | [diff] [blame] | 20 | } |
| 21 | |
rniwa@webkit.org | 3526ecc3 | 2012-06-12 20:37:15 +0000 | [diff] [blame] | 22 | if (window.testRunner && window.accessibilityController) { |
dmazzoni@google.com | f2fbdee | 2011-11-12 04:23:59 +0000 | [diff] [blame] | 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> |