Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-uncaught-exception-in-eval.html
bloba17cb17fe4ca1b79c0f6487a3d81f8bd4c2b6731
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>
7 function evalSource(name)
9 function b()
11 throw new Error("Exception in eval:" + name);
14 function a()
16 b();
19 a();
22 function doEvalWithSourceURL()
24 var source = "(" + evalSource + ")(\"with sourceURL\")//# sourceURL=evalURL.js";
25 setTimeout(eval.bind(this, source), 0);
28 function doAnonymousEvalWith()
30 var source = "(" + evalSource + ")(\"anonymous\")";
31 setTimeout(eval.bind(this, source), 0);
34 function test()
36 InspectorTest.evaluateInPage("doEvalWithSourceURL()", step2.bind(this));
38 function step2()
40 InspectorTest.evaluateInPage("doAnonymousEvalWith()", step3.bind(this));
43 function step3()
45 if (WebInspector.ConsolePanel._view()._visibleViewMessages.length < 2)
46 InspectorTest.addConsoleSniffer(step3);
47 else
48 step4();
51 function step4()
53 InspectorTest.expandConsoleMessages(onExpanded);
56 function onExpanded()
58 InspectorTest.dumpConsoleMessages();
59 InspectorTest.completeTest();
63 </script>
64 </head>
66 <body onload="runTest()">
67 <p>
68 Tests that when uncaught exception in eval'ed script ending
69 with //# sourceURL=url is logged into console, its stack trace
70 will have the url as the script source. <a href="https://bugs.webkit.org/show_bug.cgi?id=47252">Bug 47252.</a>
71 </p>
73 </body>
74 </html>