| OLD | NEW |
| (Empty) |
| 1 <body> | |
| 2 <p>Test for <a href="http://bugs.webkit.org/show_bug.cgi?id=13278">bug 13278</a>
: REGRESSION: cannot change SELECT option.</p> | |
| 3 <form> | |
| 4 <select size="1"> | |
| 5 <option>FAILURE: script didn't run</option> | |
| 6 <option>FAILURE</option> | |
| 7 <option>SUCCESS</option> | |
| 8 </select> | |
| 9 <select size="3"> | |
| 10 <option>FAILURE: script didn't run</option> | |
| 11 <option>FAILURE</option> | |
| 12 <option>SUCCESS</option> | |
| 13 </select> | |
| 14 </form> | |
| 15 <div id=result></div> | |
| 16 <script> | |
| 17 | |
| 18 if (window.testRunner) | |
| 19 testRunner.dumpAsText(); | |
| 20 | |
| 21 document.forms[0].elements[0].options[1].selected = true; | |
| 22 document.forms[0].elements[1].options[1].selected = true; | |
| 23 | |
| 24 document.forms[0].elements[0].options[2].selected = true; | |
| 25 document.forms[0].elements[1].options[2].selected = true; | |
| 26 if (document.forms[0].elements[0].value != "SUCCESS" || document.forms[0].elemen
ts[1].options[1].selected) | |
| 27 document.getElementById("result").innerHTML = "FAILURE"; | |
| 28 else | |
| 29 document.getElementById("result").innerHTML = "SUCCESS"; | |
| 30 </script> | |
| 31 </body> | |
| OLD | NEW |