| <body> | |
| Test that click() on checkboxes is not slow.<br><input type=checkbox id=cb> | |
| <script> | |
| if (window.testRunner) | |
| testRunner.dumpAsText(); | |
| var starttime = new Date().getTime(); | |
| var cb = document.getElementById('cb'); | |
| for (n=0; n<100; n++) { | |
| cb.click(); | |
| } | |
| var endtime = new Date().getTime() - starttime | |
| document.write("<br>" + (endtime > 2000 ? "FAIL, took more than 2s to click() 100 times" : "PASS")); | |
| </script> | |
| </body> |