Refactoring: Pull all fullscreen code out of Document and into its own helper class
[WebKit-https.git] / LayoutTests / accessibility / insert-selected-option-into-select-causes-crash.html
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7 <select id="popup">
8     <optgroup id=optgroup1>
9     </optgroup>
10 </select>
11 <select id="listbox" multiple>
12     <optgroup id=optgroup2>
13         <option selected>
14     </optgroup>
15 </select>
16
17 <script>
18     description("This test ensures that inserting a selected option into an HTML Select element doesn't cause a crash.");
19
20     if (window.testRunner)
21         testRunner.dumpAsText();
22
23     var optgroup1 = document.getElementById('optgroup1');
24     var optgroup2 = document.getElementById('optgroup2');
25
26     if (window.accessibilityController)
27         accessibilityController.accessibleElementById('dummy');
28
29     var listbox = document.getElementById('listbox');
30     listbox.focus();
31
32     optgroup1.appendChild(optgroup2);
33 </script>
34 <script src="../resources/js-test-post.js"></script>
35 </body>
36 </html>