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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-worker-nested-imports-syntax-error.html

Issue 2006893004: Store SourceLocation in ErrorEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2010603002
Patch Set: rebased Created 4 years, 6 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 var foo = 'fooValue'; 6 function startWorker()
7 7 {
8 window.eval = "Non-function"; 8 var worker = new Worker("resources/importScripts-1.js");
9 }
9 10
10 function test() 11 function test()
11 { 12 {
12 InspectorTest.evaluateInConsole("foo", step1); 13 InspectorTest.waitForConsoleMessages(1, step1);
14 InspectorTest.evaluateInPage("startWorker();");
13 15
14 function step1() 16 function step1()
15 { 17 {
16 InspectorTest.dumpConsoleMessages(); 18 InspectorTest.dumpConsoleMessages();
17 InspectorTest.completeTest(); 19 InspectorTest.completeTest();
18 } 20 }
19 } 21 }
22
20 </script> 23 </script>
21 </head> 24 </head>
22
23 <body onload="runTest()"> 25 <body onload="runTest()">
24 <p> 26 <p>
25 Tests that overriding window.eval does not break inspector. 27 Tests that nested import scripts in worker show correct stack on syntax error.
26 </p> 28 </p>
27
28 </body> 29 </body>
29 </html> 30 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698