blob: dd1a63b02ad66948d3d6186f7e073e2d05bb1c58 [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("Multiple and different scoped calls to the same anonymous function");
anonymousFunction();
anonymousFunction();
intermediaryFunction();
endTest();
}
</script>
</head>
<body onload="startTest()">
This page's JavaScript calls the same anonymous function from multiple and differently scoped locations.
<br>
<br>
To run this test manually, load it in the browser then load the WebInspector and look at
the profile. In the profile there should be a call to fakeObject with
fakeInteriorFunction as its child, but call() should not be shown.
<div id="output"></div>
</body>
</html>