1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
6 function buildAccessibilityTree(accessibilityObject, indent) {
8 for (var i = 0; i < indent; i++)
10 str += accessibilityObject.role;
11 str += " " + accessibilityObject.stringValue;
13 document.getElementById("tree").innerText += str;
15 if (accessibilityObject.stringValue.indexOf('End of test') >= 0)
18 var count = accessibilityObject.childrenCount;
19 for (var i = 0; i < count; ++i) {
20 if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1))
27 <script src="../fast/js/resources/js-test-pre.js"></script>
31 <span><div></div></span><span>x<div>y</div>z</span>
33 <div>End of test</div>
35 <p id="description"></p>
37 <div id="console"></div>
40 description("Make sure that a debug assert is not triggered when constructing the accessibility tree for this page.");
42 if (window.accessibilityController) {
43 // Build the accessibility tree up until 'End of test' is encountered.
44 document.body.focus();
45 buildAccessibilityTree(accessibilityController.focusedElement, 0);
50 <script src="../fast/js/resources/js-test-post.js"></script>