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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/sources/debugger/worker-debugging-script-mapping.html

Issue 2781923002: [WIP] DevTools: user SourceMapManager in Debugger (Closed)
Patch Set: works great Created 3 years, 8 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="../../inspector-test.js"></script> 3 <script src="../../inspector-test.js"></script>
4 <script src="../../debugger-test.js"></script> 4 <script src="../../debugger-test.js"></script>
5 <script src="../../console-test.js"></script> 5 <script src="../../console-test.js"></script>
6 6
7 <script> 7 <script>
8 8
9 function installWorker() 9 function installWorker()
10 { 10 {
11 new Worker("resources/worker-compiled.js"); 11 new Worker("resources/worker-compiled.js");
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 InspectorTest.startDebuggerTest(step1); 16 InspectorTest.startDebuggerTest(step1);
17 17
18 function step1() 18 function step1()
19 { 19 {
20 InspectorTest.evaluateInPage("installWorker()"); 20 InspectorTest.evaluateInPage("installWorker()");
21 InspectorTest.waitUntilPaused(paused); 21 InspectorTest.waitUntilPaused(paused);
22 InspectorTest.addSniffer(Bindings.CompilerScriptMapping.prototype, "_sou rceMapLoaded", sourceMapLoaded); 22 InspectorTest.addSniffer(Bindings.CompilerScriptMapping.prototype, "_sou rceMapAttachedForTest", sourceMapLoaded);
23 } 23 }
24 24
25 var callFrames; 25 var callFrames;
26 var callbacksLeft = 2; 26 var callbacksLeft = 2;
27 27
28 function paused(callFramesParam) 28 function paused(callFramesParam)
29 { 29 {
30 callFrames = callFramesParam; 30 callFrames = callFramesParam;
31 maybeFinishTest(); 31 maybeFinishTest();
32 } 32 }
(...skipping 13 matching lines...) Expand all
46 }; 46 };
47 47
48 </script> 48 </script>
49 49
50 </head> 50 </head>
51 51
52 <body onload="runTest()"> 52 <body onload="runTest()">
53 <p>Tests stopping in debugger in the worker with source mapping.</p> 53 <p>Tests stopping in debugger in the worker with source mapping.</p>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698