Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / accessibility / insert-selected-option-into-select-causes-crash.html
blob39b266a39407823de22d567adf094a0e79d71142
1 <!doctype html>
2 <html>
3 <head>
4 <script src="../resources/js-test.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>
17 <script>
18 description("This test ensures that inserting a selected option into an HTML Select element doesn't cause a crash.");
20 if (window.testRunner)
21 testRunner.dumpAsText();
23 var optgroup1 = document.getElementById('optgroup1');
24 var optgroup2 = document.getElementById('optgroup2');
26 if (window.accessibilityController)
27 accessibilityController.accessibleElementById('dummy');
29 var listbox = document.getElementById('listbox');
30 listbox.focus();
32 optgroup1.appendChild(optgroup2);
33 </script>
34 </body>
35 </html>