Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/console-exception-source-url.html

Issue 260513004: DevTools: [Console] fix sourceurl when exception happens before inspector is open (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/console-exception-source-url-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/console-test.js"></script>
5 <script type="text/javascript">
6 function onload()
7 {
8 if (window.testRunner)
9 testRunner.waitUntilDone();
10 setTimeout(showInspectorAndRunTest, 0);
11
12 var scriptContents = "function foo() { FAIL.FAIL; } \n //# sourceURL=foo2.js ";
13 eval(scriptContents);
14 foo();
15 }
16
17
18 function showInspectorAndRunTest()
19 {
20 if (window.testRunner)
21 testRunner.showWebInspector();
22 runTest();
23 }
24
25 function test()
26 {
27 InspectorTest.expandConsoleMessages();
28 InspectorTest.dumpConsoleMessages();
29 InspectorTest.addResult("TEST COMPLETE");
30 InspectorTest.completeTest();
31 }
32 </script>
33 </head>
34 <body onload="onload()">
35 <p>Tests that when exception happens before inspector is open source url is corr ectly shown in console.</p>
36 </body>
37 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/console-exception-source-url-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698