blob: 04b8b7c0ac3af59ebfed3cc2f4beca2daf740a83 [file] [log] [blame]
<body>
<p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13278">bug 13278</a>: REGRESSION: cannot change SELECT option.</p>
<form>
<select size="1">
<option>FAILURE: script didn't run</option>
<option>FAILURE</option>
<option>SUCCESS</option>
</select>
<select size="3">
<option>FAILURE: script didn't run</option>
<option>FAILURE</option>
<option>SUCCESS</option>
</select>
</form>
<div id=result></div>
<script>
if (window.testRunner)
testRunner.dumpAsText();
document.forms[0].elements[0].options[1].selected = true;
document.forms[0].elements[1].options[1].selected = true;
document.forms[0].elements[0].options[2].selected = true;
document.forms[0].elements[1].options[2].selected = true;
if (document.forms[0].elements[0].value != "SUCCESS" || document.forms[0].elements[1].options[1].selected)
document.getElementById("result").innerHTML = "FAILURE";
else
document.getElementById("result").innerHTML = "SUCCESS";
</script>
</body>