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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/workspace-mapping.html

Issue 1363993007: DevTools: remove UISourceCode.networkURL (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script src="../http/tests/inspector/workspace-test.js"></script> 4 <script src="../http/tests/inspector/workspace-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var uiSourceCodes = {}; 8 var uiSourceCodes = {};
9 var projectDelegates = {}; 9 var projectDelegates = {};
10 var projectDelegates = {}; 10 var projectDelegates = {};
(...skipping 23 matching lines...) Expand all
34 type: function() { return WebInspector.projectTypes.Network; }, 34 type: function() { return WebInspector.projectTypes.Network; },
35 __proto__: WebInspector.Object.prototype 35 __proto__: WebInspector.Object.prototype
36 } 36 }
37 37
38 var fileSystemMapping = new WebInspector.FileSystemMapping(); 38 var fileSystemMapping = new WebInspector.FileSystemMapping();
39 var fileSystemPath = "/var/www"; 39 var fileSystemPath = "/var/www";
40 var projectId = WebInspector.FileSystemWorkspaceBinding.projectId(fileSystem Path); 40 var projectId = WebInspector.FileSystemWorkspaceBinding.projectId(fileSystem Path);
41 fileSystemMapping.addFileSystem("/var/www"); 41 fileSystemMapping.addFileSystem("/var/www");
42 fileSystemMapping.addFileMapping("/var/www", "http://localhost/", "/localhos t/"); 42 fileSystemMapping.addFileMapping("/var/www", "http://localhost/", "/localhos t/");
43 var workspace = new WebInspector.Workspace(fileSystemMapping); 43 var workspace = new WebInspector.Workspace(fileSystemMapping);
44 var networkMapping = new WebInspector.NetworkMapping(workspace, fileSystemMa pping); 44 var networkMapping = new WebInspector.NetworkMapping(workspace, WebInspector .fileSystemWorkspaceBinding, fileSystemMapping);
45 45
46 function dumpHasMappingForURL(url) 46 function dumpHasMappingForURL(url)
47 { 47 {
48 var result = networkMapping.hasMappingForURL(url) 48 var result = networkMapping.hasMappingForURL(url)
49 if (result) 49 if (result)
50 InspectorTest.addResult(" url " + url + " is mapped."); 50 InspectorTest.addResult(" url " + url + " is mapped.");
51 else 51 else
52 InspectorTest.addResult(" url " + url + " is not mapped."); 52 InspectorTest.addResult(" url " + url + " is not mapped.");
53 } 53 }
54 54
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 dumpURLForPath("/home/foo", "index.html"); 90 dumpURLForPath("/home/foo", "index.html");
91 91
92 InspectorTest.completeTest(); 92 InspectorTest.completeTest();
93 } 93 }
94 </script> 94 </script>
95 </head> 95 </head>
96 <body onload="runTest()"> 96 <body onload="runTest()">
97 <p>Tests workspace mappings</p> 97 <p>Tests workspace mappings</p>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698