Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / image-map-update-parent-crash.html
1 <html>
2 <head>
3 <script src="../resources/js-test.js"></script>
4 <script src="../resources/accessibility-helper.js"></script>
5 <script>
6
7 jsTestIsAsync = true;
8
9 function runAXTest() {
10    description("This tests that an image map's hold on it's parent will be cleared if the parent goes away.");
11
12    // First access all children using AX
13    touchAccessibilityTree(accessibilityController.rootElement);
14
15    var child = document.getElementById('img'); child.parentNode.removeChild(child);
16
17    // Now verify we haven't crashed.
18    touchAccessibilityTree(accessibilityController.rootElement);
19
20    finishJSTest();
21 }
22 </script>
23
24 </head>
25 <body onload="runAXTest()">
26
27 <map name="map">
28 <div id="o7"></div>
29 <area id="o20" href="#"></area></map>
30
31 <img id="img" usemap="#map"><span></span> 
32
33 <p id="description"></p>
34 <div id="console"></div>
35
36 </body>
37 </html>