Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / parent-delete.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6     testRunner.dumpAsText();
7
8 function runTest() {
9     var accessibilityElement;
10     {
11         var outer = document.getElementById("outer");
12         var inner = document.getElementById("inner");
13         var editable = document.getElementById("editable");
14         var result = document.getElementById("result");
15         editable.focus();
16         if (window.accessibilityController) {
17             var accessibilityElement = accessibilityController.focusedElement;
18         }
19         inner.removeChild(editable);
20         outer.removeChild(inner);
21     }
22     if (window.accessibilityController) {
23         result.innerText = accessibilityElement.allAttributes();
24     }
25 }
26 </script>
27 </head>
28 <body onload="runTest()">
29 This test passes if there is no crash.
30 <div id="outer" style="display: none;">
31     <div id="inner" style="display: none;">
32         <div id="editable" contenteditable="true" style="display: none;">
33             This is some throwaway text
34         </div>
35     </div>
36 </div>
37 <div id="result"></div>
38 </body>
39 </html>