| 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="checkbox" id="ch" onchange="handleChange()"> | 7 <input type="checkbox" id="ch" onchange="handleChange()"> |
| 8 <input type="checkbox" id="ch1" value="" onchange="handleChange()"> |
| 8 <script> | 9 <script> |
| 9 description("This is to test onchange of checkboxes"); | 10 description("This is to test onchange of checkboxes"); |
| 10 | 11 |
| 11 function handleChange() { | 12 function handleChange() { |
| 12 testPassed('onChange event fired for the checkbox.'); | 13 testPassed('onChange event fired for the checkbox.'); |
| 13 } | 14 } |
| 14 | 15 |
| 15 document.getElementById('ch').click(); | 16 document.getElementById('ch').click(); |
| 17 document.getElementById('ch1').click(); |
| 16 </script> | 18 </script> |
| 17 </body> | 19 </body> |
| 18 </html> | 20 </html> |
| OLD | NEW |