blob: 1f7d4c351d3f5379e16186e604425e90af06f507 [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("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>