Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Bindings / event-target-wrapper.html
blob3701046c98822345e64438c818928615fdab1775
1 <!DOCTYPE html>
2 <body>
3 <script src="../resources/runner.js"></script>
4 <p><a href="#">Click here to start</a></p>
5 <script>
6 var link = document.getElementsByTagName('a')[0];
7 var evt = null;
8 var kIteratonsPerTest = 100000;
10 link.addEventListener('click', function(event) {
11 link.textContent = '';
12 window.evt = event;
13 event.preventDefault();
15 PerfTestRunner.measureRunsPerSecond({
16 description: "Measures performance of repeatedly accessing the event object within an event handler.",
17 run: function () {
18 var e = window.evt;
19 for (var x = 0; x < kIteratonsPerTest; x++)
20 e.target;
21 }});
23 return false;
24 }, false);
26 if (window.eventSender) {
27 eventSender.mouseMoveTo(link.offsetLeft + 5, link.offsetTop + 5);
28 eventSender.mouseDown();
29 eventSender.mouseUp();
31 </script>
32 </body>