| <html> |
| <head> |
| <script src="resources/profiler-test-JS-resources.js"></script> |
| <script> |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.setJavaScriptProfilingEnabled(true); |
| } |
| |
| function startTest() |
| { |
| console.profile("Call window.eval()"); |
| |
| evalFunction(); |
| |
| endTest(); |
| } |
| </script> |
| <script> |
| window.eval("function evalFunction() { insertNewText(); }"); |
| </script> |
| </head> |
| |
| <body onload="startTest()"> |
| This page has a call to window.eval(). |
| <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 eval(). |
| <div id="output"></div> |
| </body> |
| </html> |