| <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> |
| <script src="../resources/js-test-pre.js"></script> |
| <script src="../resources/accessibility-helper.js"></script> |
| <a href="about:blank"><div></div></a> |
| <div id="stopElement">End of test</div> |
| description("This can cause a crash."); |
| if (window.accessibilityController) { |
| // First build up full accessibility tree. |
| window.stopElement = accessibilityController.accessibleElementById("stopElement"); |
| document.getElementById("tree").innerText += "Before:\n"; |
| dumpAccessibilityTree(accessibilityController.focusedElement, stopElement, 0); |
| // Remove anchor that causes debug assert in AccessibilityRenderObject::addChildren |
| document.body.removeChild(document.body.children[2]) |
| // Build up full accessibility tree again. |
| document.getElementById("tree").innerText += "After:\n"; |
| dumpAccessibilityTree(accessibilityController.focusedElement, stopElement, 0); |
| <script src="../resources/js-test-post.js"></script> |