3 <script src="../fast/js/resources/js-test-pre.js"></script>
8 testRunner.waitUntilDone();
10 function buildAccessibilityTree(accessibilityObject, indent) {
11 var count = accessibilityObject.childrenCount;
12 for (var i = 0; i < count; ++i) {
13 if (!buildAccessibilityTree(accessibilityObject.childAtIndex(i), indent + 1))
20 function runAXTest() {
23 description("This tests that an image map's hold on it's parent will be cleared if the parent goes away.");
25 // First access all children using AX
26 buildAccessibilityTree(accessibilityController.rootElement, 0);
28 var child = document.getElementById('img'); child.parentNode.removeChild(child);
30 // Now verify we haven't crashed.
31 buildAccessibilityTree(accessibilityController.rootElement, 0);
33 if (window.testRunner)
34 testRunner.notifyDone();
43 <area id="o20" href="#"></area></map>
45 <img id="img" usemap="#map"><span></span>
47 <script>setTimeout("runAXTest();", 1);</script>
49 <p id="description"></p>
50 <div id="console"></div>