38 lines
840 B
HTML
38 lines
840 B
HTML
<html>
|
|
<head>
|
|
<script src="../resources/js-test.js"></script>
|
|
<script src="../resources/accessibility-helper.js"></script>
|
|
<script>
|
|
|
|
jsTestIsAsync = true;
|
|
|
|
function runAXTest() {
|
|
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);
|
|
|
|
finishJSTest();
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="runAXTest()">
|
|
|
|
<map name="map">
|
|
<div id="o7"></div>
|
|
<area id="o20" href="#"></area></map>
|
|
|
|
<img id="img" usemap="#map"><span></span>
|
|
|
|
<p id="description"></p>
|
|
<div id="console"></div>
|
|
|
|
</body>
|
|
</html>
|