blob: 1eb28a98fa029b2814db4f1a670a39c92d6724c3 [file] [log] [blame]
<html>
<head>
<script src="../../http/tests/inspector/inspector-test.js"></script>
<script src="../../http/tests/inspector/debugger-test.js"></script>
<script>
function doEval()
{
eval("function keepAlive() {}\n//@ sourceURL=evalURL.js");
}
function test()
{
InspectorTest.runDebuggerTestSuite([
function testSourceURLComment(next)
{
InspectorTest.showScriptSource("evalURL.js", didShowScriptSource);
InspectorTest.evaluateInPage("setTimeout(doEval, 0)");
function didShowScriptSource(sourceFrame)
{
InspectorTest.addResult(sourceFrame.textEditor.text());
next();
}
}
]);
};
</script>
</head>
<body onload="runTest()">
<p>Tests that evals with sourceURL comment are shown in scripts panel.</p>
</body>
</html>