Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / image-map-update-parent-crash.html
blob21cc3b1c48edca36d8600c64d065261254bb6006
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
5 <script>
7 if (window.testRunner)
8 testRunner.waitUntilDone();
10 function runAXTest() {
13 description("This tests that an image map's hold on it's parent will be cleared if the parent goes away.");
15 // First access all children using AX
16 accessibilityController.accessibleElementById('dummy');
18 var child = document.getElementById('img'); child.parentNode.removeChild(child);
20 // Now verify we haven't crashed.
21 accessibilityController.accessibleElementById('dummy');
23 if (window.testRunner)
24 testRunner.notifyDone();
26 </script>
28 </head>
29 <body>
31 <map name="map">
32 <div id="o7"></div>
33 <area id="o20" href="#"></area></map>
35 <img id="img" usemap="#map"><span></span>
37 <script>setTimeout("runAXTest();", 1);</script>
39 <p id="description"></p>
40 <div id="console"></div>
42 </body>
43 </html>