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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/compiler-script-mapping.html

Issue 2376583002: DevTools: remove WI.NetworkMapping.networkURL (Closed)
Patch Set: do not blackbox fs uiSourceCodes Created 4 years, 2 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="workspace-test.js"></script> 5 <script src="workspace-test.js"></script>
6 <script src="breakpoint-manager-test.js"></script> 6 <script src="breakpoint-manager-test.js"></script>
7 7
8 <script> 8 <script>
9 9
10 function test() 10 function test()
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 function resetModels() 46 function resetModels()
47 { 47 {
48 target.debuggerModel._reset(); 48 target.debuggerModel._reset();
49 InspectorTest.testDebuggerWorkspaceBinding._reset(target); 49 InspectorTest.testDebuggerWorkspaceBinding._reset(target);
50 } 50 }
51 51
52 function uiSourceCodeAdded(event) 52 function uiSourceCodeAdded(event)
53 { 53 {
54 var uiSourceCode = event.data; 54 var uiSourceCode = event.data;
55 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiSourceCod e); 55 InspectorTest.addResult("UISourceCodeAdded: [" + uiSourceCode.project(). type() + "] " + uiSourceCode.url());
56 InspectorTest.addResult("UISourceCodeAdded: [" + uiSourceCode.project(). type() + "] " + networkURL);
57 } 56 }
58 57
59 function uiSourceCodeRemoved(event) 58 function uiSourceCodeRemoved(event)
60 { 59 {
61 var uiSourceCode = event.data; 60 var uiSourceCode = event.data;
62 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiSourceCod e); 61 InspectorTest.addResult("UISourceCodeRemoved: [" + uiSourceCode.project( ).type() + "] " + uiSourceCode.url());
63 InspectorTest.addResult("UISourceCodeRemoved: [" + uiSourceCode.project( ).type() + "] " + networkURL);
64 } 62 }
65 63
66 InspectorTest.runTestSuite([ 64 InspectorTest.runTestSuite([
67 function testSimpleMap(next) 65 function testSimpleMap(next)
68 { 66 {
69 /* 67 /*
70 example.js: 68 example.js:
71 0 1 2 3 69 0 1 2 3
72 012345678901234567890123456789012345 70 012345678901234567890123456789012345
73 function add(variable_x, variable_y) 71 function add(variable_x, variable_y)
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 originalUISourceCode = uiSourceCode; 245 originalUISourceCode = uiSourceCode;
248 } 246 }
249 247
250 function stubUISourceCodeAdded(uiSourceCode) 248 function stubUISourceCodeAdded(uiSourceCode)
251 { 249 {
252 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(firstUISour ceCodeAdded); 250 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(firstUISour ceCodeAdded);
253 } 251 }
254 252
255 function firstUISourceCodeAdded(uiSourceCode) 253 function firstUISourceCodeAdded(uiSourceCode)
256 { 254 {
257 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiS ourceCode);
258 if (!networkURL) {
259 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(firstUI SourceCodeAdded);
260 return;
261 }
262 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(secondUISou rceCodeAdded); 255 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(secondUISou rceCodeAdded);
263 } 256 }
264 257
265 function secondUISourceCodeAdded(uiSourceCode) 258 function secondUISourceCodeAdded(uiSourceCode)
266 { 259 {
267 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiS ourceCode);
268 if (!networkURL) {
269 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(secondU ISourceCodeAdded);
270 return;
271 }
272 afterScriptAdded(); 260 afterScriptAdded();
273 } 261 }
274 262
275 function afterScriptAdded() 263 function afterScriptAdded()
276 { 264 {
277 InspectorTest.addResult("afterScriptAdded"); 265 InspectorTest.addResult("afterScriptAdded");
278 var uiSourceCode1 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source1.js"); 266 var uiSourceCode1 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source1.js");
279 var uiSourceCode2 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source2.js"); 267 var uiSourceCode2 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source2.js");
280 268
281 InspectorTest.checkUILocation(uiSourceCode1, 4, 4, uiLocation(sc ript, 0, 81)); 269 InspectorTest.checkUILocation(uiSourceCode1, 4, 4, uiLocation(sc ript, 0, 81));
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(firstUISour ceCodeAdded); 311 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(firstUISour ceCodeAdded);
324 } 312 }
325 313
326 function originalResourceUISourceCodeAdded(uiSourceCode) 314 function originalResourceUISourceCodeAdded(uiSourceCode)
327 { 315 {
328 originalUISourceCode = uiSourceCode; 316 originalUISourceCode = uiSourceCode;
329 } 317 }
330 318
331 function firstUISourceCodeAdded(uiSourceCode) 319 function firstUISourceCodeAdded(uiSourceCode)
332 { 320 {
333 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(secondUISou rceCodeAdded); 321 InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(afterScript Added);
334 }
335
336 function secondUISourceCodeAdded(uiSourceCode)
337 {
338 afterScriptAdded();
339 } 322 }
340 323
341 function afterScriptAdded(uiSourceCode) 324 function afterScriptAdded(uiSourceCode)
342 { 325 {
343 var uiSourceCode1 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source1.js"); 326 var uiSourceCode1 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source1.js");
344 var uiSourceCode2 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source2.js"); 327 var uiSourceCode2 = InspectorTest.testWorkspace.uiSourceCodeForU RL("http://localhost:8000/inspector/resources/source2.js");
345 328
346 InspectorTest.checkUILocation(uiSourceCode1, 4, 4, uiLocation(sc ript, 0, 81)); 329 InspectorTest.checkUILocation(uiSourceCode1, 4, 4, uiLocation(sc ript, 0, 81));
347 InspectorTest.checkUILocation(uiSourceCode1, 5, 4, uiLocation(sc ript, 0, 93)); 330 InspectorTest.checkUILocation(uiSourceCode1, 5, 4, uiLocation(sc ript, 0, 93));
348 InspectorTest.checkUILocation(uiSourceCode2, 7, 4, uiLocation(sc ript, 1, 151)); 331 InspectorTest.checkUILocation(uiSourceCode2, 7, 4, uiLocation(sc ript, 1, 151));
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
524 }; 507 };
525 508
526 </script> 509 </script>
527 510
528 </head> 511 </head>
529 512
530 <body onload="runTest()"> 513 <body onload="runTest()">
531 <p>Tests SourceMap and CompilerScriptMapping.</p> 514 <p>Tests SourceMap and CompilerScriptMapping.</p>
532 </body> 515 </body>
533 </html> 516 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/elements/styles/update-locations-on-filesystem-scss-load.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698