| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| var successfullyParsed = false; |
| function buildAccessibilityTree(accessibilityObject, indent) { |
| for (var i = 0; i < indent; i++) |
| str += accessibilityObject.role; |
| str += " " + accessibilityObject.stringValue; |
| document.getElementById("tree").innerText += str; |
| if (accessibilityObject.stringValue.indexOf('End of test') >= 0) |
| var count = accessibilityObject.childrenCount; |
| for (var i = 0; i < count; ++i) { |
| if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1)) |
| <script src="../fast/js/resources/js-test-pre.js"></script> |
| <span><div></div></span><span>x<div>y</div>z</span> |
| description("Make sure that a debug assert is not triggered when constructing the accessibility tree for this page."); |
| if (window.accessibilityController) { |
| // Build the accessibility tree up until 'End of test' is encountered. |
| buildAccessibilityTree(accessibilityController.focusedElement, 0); |
| successfullyParsed = true; |
| <script src="../fast/js/resources/js-test-post.js"></script> |