Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / slow-click.html
blob46e20bf61291facbd3353c85006b6360fe4bd3ab
2 <body>
3 Test that click() on checkboxes is not slow.<br><input type=checkbox id=cb>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 var starttime = new Date().getTime();
9 var cb = document.getElementById('cb');
10 for (n=0; n<100; n++) {
11 cb.click();
13 var endtime = new Date().getTime() - starttime
14 document.write("<br>" + (endtime > 2000 ? "FAIL, took more than 2s to click() 100 times" : "PASS"));
15 </script>
16 </body>