Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-log-eval-syntax-error.html
blob13d3f3c23d3cda04ba92739348836ab446e6210c
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
6 function foo()
8 eval("}");
10 function boo()
12 eval("\n}\n//# sourceURL=boo.js");
14 </script>
15 <script>
16 function test()
18 InspectorTest.evaluateInPage("setTimeout(foo, 0);", InspectorTest.waitUntilMessageReceived.bind(this, step2));
20 function step2()
22 InspectorTest.evaluateInPage("setTimeout(boo, 0);", InspectorTest.waitUntilMessageReceived.bind(this, step3));
25 function step3()
27 InspectorTest.dumpConsoleMessages();
28 InspectorTest.completeTest();
31 </script>
32 </head>
33 <body onload="runTest()">
34 <p>
35 Tests that syntax errors in eval are logged into console, contains correct link and doesn't cause browser crash.
36 </p>
37 </body>
38 </html>