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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger/file-system-project-mapping.html

Issue 1564113003: DevTools: merge uisourcecode's url-alike members. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 years, 11 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/debugger-test.js"></script> 4 <script src="../../../http/tests/inspector/debugger-test.js"></script>
5 <script src="../../../http/tests/inspector/workspace-test.js"></script> 5 <script src="../../../http/tests/inspector/workspace-test.js"></script>
6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script > 6 <script src="../../../http/tests/inspector/isolated-filesystem-test.js"></script >
7 <script src="../../../http/tests/inspector/live-edit-test.js"></script> 7 <script src="../../../http/tests/inspector/live-edit-test.js"></script>
8 <script> 8 <script>
9 function test() 9 function test()
10 { 10 {
(...skipping 15 matching lines...) Expand all
26 { 26 {
27 InspectorTest.addResult("(suspend state changed: " + InspectorTest.testT argetManager.allTargetsSuspended() + ")"); 27 InspectorTest.addResult("(suspend state changed: " + InspectorTest.testT argetManager.allTargetsSuspended() + ")");
28 } 28 }
29 29
30 function dumpFileSystemUISourceCodesMappings() 30 function dumpFileSystemUISourceCodesMappings()
31 { 31 {
32 var uiSourceCodes = InspectorTest.testWorkspace.project(fileSystemProjec tId).uiSourceCodes(); 32 var uiSourceCodes = InspectorTest.testWorkspace.project(fileSystemProjec tId).uiSourceCodes();
33 InspectorTest.addResult("UISourceCode uri to url mappings:"); 33 InspectorTest.addResult("UISourceCode uri to url mappings:");
34 for (var i = 0; i < uiSourceCodes.length; ++i) { 34 for (var i = 0; i < uiSourceCodes.length; ++i) {
35 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiSourc eCodes[i]); 35 var networkURL = InspectorTest.testNetworkMapping.networkURL(uiSourc eCodes[i]);
36 InspectorTest.addResult(" " + uiSourceCodes[i].uri() + " -> " + n etworkURL); 36 InspectorTest.addResult(" " + uiSourceCodes[i].url() + " -> " + n etworkURL);
37 } 37 }
38 } 38 }
39 39
40 InspectorTest.runTestSuite([ 40 InspectorTest.runTestSuite([
41 function testAutomaticMapping(next) 41 function testAutomaticMapping(next)
42 { 42 {
43 createWorkspaceWithTarget(); 43 createWorkspaceWithTarget();
44 44
45 InspectorTest.addResult("Adding file system."); 45 InspectorTest.addResult("Adding file system.");
46 var fs = new InspectorTest.TestFileSystem("file:///var/www"); 46 var fs = new InspectorTest.TestFileSystem("file:///var/www");
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 } 232 }
233 }, 233 },
234 234
235 function testRemoveProject(next) 235 function testRemoveProject(next)
236 { 236 {
237 function dumpWorkspaceUISourceCodes() 237 function dumpWorkspaceUISourceCodes()
238 { 238 {
239 InspectorTest.addResult("Dumping uiSourceCodes origin URLs:"); 239 InspectorTest.addResult("Dumping uiSourceCodes origin URLs:");
240 var uiSourceCodes = InspectorTest.testWorkspace.uiSourceCodes(); 240 var uiSourceCodes = InspectorTest.testWorkspace.uiSourceCodes();
241 for (var i = 0; i < uiSourceCodes.length; ++i) 241 for (var i = 0; i < uiSourceCodes.length; ++i)
242 InspectorTest.addResult(" - " + uiSourceCodes[i].originURL( )); 242 InspectorTest.addResult(" - " + uiSourceCodes[i].url());
243 } 243 }
244 244
245 createWorkspaceWithTarget(); 245 createWorkspaceWithTarget();
246 246
247 InspectorTest.addResult("Adding file system."); 247 InspectorTest.addResult("Adding file system.");
248 var fs = new InspectorTest.TestFileSystem("file:///var/www"); 248 var fs = new InspectorTest.TestFileSystem("file:///var/www");
249 fs.root.addFile("foo.js", ""); 249 fs.root.addFile("foo.js", "");
250 fs.reportCreated(fileSystemCreated); 250 fs.reportCreated(fileSystemCreated);
251 251
252 function fileSystemCreated() 252 function fileSystemCreated()
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 } 335 }
336 } 336 }
337 ]); 337 ]);
338 }; 338 };
339 </script> 339 </script>
340 </head> 340 </head>
341 <body onload="runTest()"> 341 <body onload="runTest()">
342 <p>Tests file system project mappings.</p> 342 <p>Tests file system project mappings.</p>
343 </body> 343 </body>
344 </html> 344 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698