| <script src="resources/profiler-test-JS-resources.js"></script> |
| internals.setJavaScriptProfilingEnabled(true); |
| console.profile("Same anonymous function called from different contexts"); |
| eval("anonymousFunction()"); |
| <body onload="startTest()"> |
| This page's JavaScript calls an anonymous function from different contexts. |
| To run this test manually, load it in the browser then load the WebInspector and look at |
| the profile. Beneath onload and startTest it should show three children, an |
| anonymous function, script context, and the endTest call. |