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

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

Issue 2784733002: DevTools: prepare tests for Persistence2.0 release (Closed)
Patch Set: address comments + three special tests 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="persistence/persistence-test.js"></script> 5 <script src="persistence/persistence-test.js"></script>
6 <script src="isolated-filesystem-test.js"></script> 6 <script src="isolated-filesystem-test.js"></script>
7 <script> 7 <script>
8 function addScript(url) 8 function addScript(url)
9 { 9 {
10 var script = document.createElement("script"); 10 var script = document.createElement("script");
11 script.setAttribute("src", url); 11 script.setAttribute("src", url);
12 document.head.appendChild(script); 12 document.head.appendChild(script);
13 } 13 }
14 14
15 function test() 15 function test()
16 { 16 {
17 InspectorTest.forceUseDefaultMapping();
17 var target = InspectorTest.mainTarget; 18 var target = InspectorTest.mainTarget;
18 var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding.projectId(" file:///var/www"); 19 var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding.projectId(" file:///var/www");
19 20
20 function dumpFileSystemUISourceCodesMappings() 21 function dumpFileSystemUISourceCodesMappings()
21 { 22 {
22 var uiSourceCodes = Workspace.workspace.project(fileSystemProjectId).uiS ourceCodes(); 23 var uiSourceCodes = Workspace.workspace.project(fileSystemProjectId).uiS ourceCodes();
23 InspectorTest.addResult("UISourceCode uri to url mappings:"); 24 InspectorTest.addResult("UISourceCode uri to url mappings:");
24 for (var uiSourceCode of uiSourceCodes) { 25 for (var uiSourceCode of uiSourceCodes) {
25 var binding = Persistence.persistence.binding(uiSourceCode); 26 var binding = Persistence.persistence.binding(uiSourceCode);
26 var url = binding ? binding.network.url() : ""; 27 var url = binding ? binding.network.url() : "";
(...skipping 29 matching lines...) Expand all
56 } 57 }
57 } 58 }
58 ]); 59 ]);
59 }; 60 };
60 </script> 61 </script>
61 </head> 62 </head>
62 <body onload="runTest()"> 63 <body onload="runTest()">
63 <p>Tests file system project mappings.</p> 64 <p>Tests file system project mappings.</p>
64 </body> 65 </body>
65 </html> 66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698