blob: 19f2ac4144f9ac7041685ab21c81cd1f96813b71 [file]
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
if (window.testRunner)
testRunner.dumpAsText();
if (window.internals)
internals.settings.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>