| <script src="../resources/js-test-pre.js"></script> |
| <script src="../resources/accessibility-helper.js"></script> |
| testRunner.waitUntilDone(); |
| description("This tests that an image map's hold on it's parent will be cleared if the parent goes away."); |
| // First access all children using AX |
| touchAccessibilityTree(accessibilityController.rootElement); |
| var child = document.getElementById('img'); child.parentNode.removeChild(child); |
| // Now verify we haven't crashed. |
| touchAccessibilityTree(accessibilityController.rootElement); |
| <area id="o20" href="#"></area></map> |
| <img id="img" usemap="#map"><span></span> |
| <script>setTimeout("runAXTest();", 1);</script> |