OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../fast/js/resources/js-test-pre.js"></script> | 4 <script src="../../fast/js/resources/js-test-pre.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 <script> | 8 <script> |
9 description("This is to test onchange of checkboxes"); | 9 description("This is to test onchange of checkboxes"); |
10 | 10 |
11 function handleChange() { | 11 function handleChange() { |
12 testPassed('onChange event fired for the checkbox.'); | 12 testPassed('onChange event fired for the checkbox.'); |
13 } | 13 } |
14 | 14 |
15 document.getElementById('ch').click(); | 15 document.getElementById('ch').click(); |
16 </script> | 16 </script> |
17 <script src="../../fast/js/resources/js-test-post.js"></script> | |
18 </body> | 17 </body> |
19 </html> | 18 </html> |
OLD | NEW |