blob: 414db1300bd3dda69431e552abd23d04f1b8b432 [file] [log] [blame]
<!doctype html>
<html>
<head>
<script src="../resources/js-test-pre.js"></script>
</head>
<body>
<select id="popup">
<optgroup id=optgroup1>
</optgroup>
</select>
<select id="listbox" multiple>
<optgroup id=optgroup2>
<option selected>
</optgroup>
</select>
<script>
description("This test ensures that inserting a selected option into an HTML Select element doesn't cause a crash.");
if (window.testRunner)
testRunner.dumpAsText();
var optgroup1 = document.getElementById('optgroup1');
var optgroup2 = document.getElementById('optgroup2');
if (window.accessibilityController)
accessibilityController.accessibleElementById('dummy');
var listbox = document.getElementById('listbox');
listbox.focus();
optgroup1.appendChild(optgroup2);
</script>
<script src="../resources/js-test-post.js"></script>
</body>
</html>