| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../../resources/js-test.js"></script> | 4 <script src="../../../resources/js-test.js"></script> |
| 5 </head> | 5 </head> |
| 6 <body> | 6 <body> |
| 7 <input type="radio" name="test" id="rd"> | 7 <input type="radio" name="test" id="rd"> |
| 8 <input type="radio" name="test" id="rd2" onchange="handleChange()"> | 8 <input type="radio" name="test" id="rd2" onchange="handleChange()"> |
| 9 <input type="radio" name="test" id="rd3" value="" onchange="handleChange()"> |
| 9 <script> | 10 <script> |
| 10 description("This is to test onchange of radio buttons"); | 11 description("This is to test onchange of radio buttons"); |
| 11 | 12 |
| 12 function handleChange() { | 13 function handleChange() { |
| 13 testPassed('onChange event fired for a radio button.'); | 14 testPassed('onChange event fired for a radio button.'); |
| 14 } | 15 } |
| 15 | 16 |
| 16 document.getElementById('rd2').click(); | 17 document.getElementById('rd2').click(); |
| 18 document.getElementById('rd3').click(); |
| 17 </script> | 19 </script> |
| 18 </body> | 20 </body> |
| 19 </html> | 21 </html> |
| OLD | NEW |