Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / div-within-anchors-causes-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 
2 <html> 
3 <head>
4 <script src="../resources/js-test-pre.js"></script> 
5 <script src="../resources/accessibility-helper.js"></script>
6 </head> 
7 <body> 
8  
9 <a><div></div></a>
10
11 <a><div></div></a>
12
13 <a href="about:blank"><div></div></a> 
14
15 <div id="stopElement">End of test</div>
16
17 <pre id="tree"></pre>
18  
19 <p id="description"></p> 
20 <div id="console"></div> 
21  
22 <script> 
23     description("This can cause a crash.");
24  
25     if (window.accessibilityController) {
26         // First build up full accessibility tree.
27         window.stopElement = accessibilityController.accessibleElementById("stopElement");
28
29         document.getElementById("tree").innerText += "Before:\n";
30         document.body.focus();
31         dumpAccessibilityTree(accessibilityController.focusedElement, stopElement, 0);
32
33         // Remove anchor that causes debug assert in AccessibilityRenderObject::addChildren
34         document.body.removeChild(document.body.children[2])
35         
36         // Build up full accessibility tree again.
37         document.getElementById("tree").innerText += "After:\n";
38         document.body.focus();
39         dumpAccessibilityTree(accessibilityController.focusedElement, stopElement, 0);
40     }
41  
42 </script> 
43  
44 <script src="../resources/js-test-post.js"></script> 
45 </body> 
46 </html>