blob: 2deb132ae044ba0cae90d786a554b4610488139d [file] [log] [blame]
<!DOCTYPE html>
<body>
<script src="../resources/runner.js"></script>
<p><a href="#">Click here to start</a></p>
<script>
var link = document.getElementsByTagName('a')[0];
var evt = null;
var kIteratonsPerTest = 100000;
link.addEventListener('click', function(event) {
link.textContent = '';
window.evt = event;
event.preventDefault();
PerfTestRunner.measureRunsPerSecond({run: function () {
var e = window.evt;
for (var x = 0; x < kIteratonsPerTest; x++)
e.target;
}});
return false;
}, false);
if (window.eventSender) {
eventSender.mouseMoveTo(link.offsetLeft + 5, link.offsetTop + 5);
eventSender.mouseDown();
eventSender.mouseUp();
}
</script>
</body>