blob: ea710b954d4a56445ac7a2f445e386d71bf4d0a9 [file] [log] [blame]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
internals.setJavaScriptProfilingEnabled(true);
function startTest()
{
console.profile("Inline event handler");
document.getElementById("eventListenerSetInline").click();
}
function eventListener() {
anonymousFunction();
endTest();
}
</script>
</head>
<body onload="startTest()">
This page has an inline event handler.
<br>
<br>
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile onclick() should be a sibling to onload() and onclick()
should have eventListener() as a child.
<input type="button" onclick="eventListener()" id="eventListenerSetInline" value="Event Listener Set Inline">
<div id="output"></div>
</body>
</html>