Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / menu-item-crash.html
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body id="body">
7
8 <div id="content" role="group">
9
10 <div role="menu" id="menu">
11  <div role="menuitem" id="item">a</div>
12  <div role="menuitem">a</div>
13 </div>
14
15 <script>
16
17     description("This tests that deleting a ARIA menu and children do not cause a crash.");
18
19     if (window.accessibilityController) {
20       
21         var content = accessibilityController.accessibleElementById("item");
22
23         // Don't crash!
24         document.getElementById("content").innerHTML = "";  
25    
26         debug("PASS - There was no crash when removing the ARIA menu from the DOM.");
27     }
28
29
30 </script>
31
32 <script src="../resources/js-test-post.js"></script>
33 </body>
34 </html>
35