| OLD | NEW |
| 1 <body> | 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> | 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> | 3 <form> |
| 4 <select size="1"> | 4 <select size="1"> |
| 5 <option>FAILURE: script didn't run</option> | 5 <option>FAILURE: script didn't run</option> |
| 6 <option>FAILURE</option> | 6 <option>FAILURE</option> |
| 7 <option>SUCCESS</option> | 7 <option>SUCCESS</option> |
| 8 </select> | 8 </select> |
| 9 <select size="3"> | 9 <select size="3"> |
| 10 <option>FAILURE: script didn't run</option> | 10 <option>FAILURE: script didn't run</option> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 document.forms[0].elements[1].options[1].selected = true; | 22 document.forms[0].elements[1].options[1].selected = true; |
| 23 | 23 |
| 24 document.forms[0].elements[0].options[2].selected = true; | 24 document.forms[0].elements[0].options[2].selected = true; |
| 25 document.forms[0].elements[1].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) | 26 if (document.forms[0].elements[0].value != "SUCCESS" || document.forms[0].elemen
ts[1].options[1].selected) |
| 27 document.getElementById("result").innerHTML = "FAILURE"; | 27 document.getElementById("result").innerHTML = "FAILURE"; |
| 28 else | 28 else |
| 29 document.getElementById("result").innerHTML = "SUCCESS"; | 29 document.getElementById("result").innerHTML = "SUCCESS"; |
| 30 </script> | 30 </script> |
| 31 </body> | 31 </body> |
| OLD | NEW |