blob: b76711c937c11d59df58e2b000eba7778e501fae [file] [log] [blame]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.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>