3 <script src=
"../../http/tests/inspector/inspector-test.js"></script>
4 <script src=
"../../http/tests/inspector/console-test.js"></script>
10 function addInlineWithSyntaxError()
12 var headElement
= document
.getElementsByTagName("head")[0];
13 var scriptElement
= document
.createElement("script");
14 scriptElement
.setAttribute("type", "text/javascript");
15 headElement
.appendChild(scriptElement
);
16 scriptElement
.text
= "}\n//# sourceURL=boo.js";
23 InspectorTest
.evaluateInPage("setTimeout(foo, 0);", InspectorTest
.waitUntilMessageReceived
.bind(this, step2
));
27 InspectorTest
.evaluateInPage("setTimeout(addInlineWithSyntaxError, 0);", InspectorTest
.waitUntilMessageReceived
.bind(this, step3
));
32 InspectorTest
.dumpConsoleMessages();
33 InspectorTest
.completeTest();
38 <body onload=
"runTest()">
40 Tests that log message and syntax errors from inline scripts with sourceURL are logged into console, contains correct link and doesn't cause browser crash.