| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="resources/profiler-test-JS-resources.js"></script> | |
| 4 <script> | |
| 5 if (window.testRunner) | |
| 6 testRunner.dumpAsText(); | |
| 7 if (window.internals) | |
| 8 internals.setJavaScriptProfilingEnabled(true); | |
| 9 | |
| 10 function startTest() | |
| 11 { | |
| 12 console.profile("Anonymous function calls built-in functions"); | |
| 13 anonymousFunction(); | |
| 14 endTest(); | |
| 15 } | |
| 16 </script> | |
| 17 </head> | |
| 18 | |
| 19 <body onload="startTest()"> | |
| 20 This page has an anonymous JavaScript function that calls built-in functions. | |
| 21 <br> | |
| 22 <br> | |
| 23 To run this test manually, load it in the browser then load the WebInspector and
look at | |
| 24 the profile. Beneath onload and startTest it should show three children, an | |
| 25 anonymous function, script context, and the endTest call. | |
| 26 <div id="output"></div> | |
| 27 </body> | |
| 28 </html> | |
| OLD | NEW |