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

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

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: reupload 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="../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> 7 <script>
8 function test() 8 function test()
9 { 9 {
10 function dumpUISourceCodes(uiSourceCodes, next) 10 function dumpUISourceCodes(uiSourceCodes, next)
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 82
83 function onProjectsRefreshed() 83 function onProjectsRefreshed()
84 { 84 {
85 uiSourceCodes = InspectorTest.fileSystemUISourceCodes(); 85 uiSourceCodes = InspectorTest.fileSystemUISourceCodes();
86 dumpUISourceCodes(uiSourceCodes, uiSourceCodesDumped); 86 dumpUISourceCodes(uiSourceCodes, uiSourceCodesDumped);
87 } 87 }
88 88
89 function uiSourceCodesDumped() 89 function uiSourceCodesDumped()
90 { 90 {
91 dumpUISourceCodeLocations(uiSourceCodes, 5); 91 dumpUISourceCodeLocations(uiSourceCodes, 5);
92 InspectorTest.addResult("UISourceCode uri to url mappings:");
93 for (var i = 0; i < uiSourceCodes.length; ++i) {
94 var url = WebInspector.networkMapping.networkURL(uiSourceCod es[i]);
95 if (!url)
96 continue;
97 InspectorTest.addResult(" " + uiSourceCodes[i].url() + " -> " + url);
98 }
99 InspectorTest.addResult("UISourceCode url to uri mappings:");
100 for (var i = 0; i < uiSourceCodes.length; ++i) {
101 var url = WebInspector.networkMapping.networkURL(uiSourceCod es[i]);
102 if (!url)
103 continue;
104 var uri = WebInspector.networkMapping.uiSourceCodeForURLForA nyTarget(url).url();
105 InspectorTest.addResult(" " + url + " -> " + uri);
106 }
107 WebInspector.workspace.addEventListener(WebInspector.Workspace.E vents.WorkingCopyCommitted, contentCommitted, this); 92 WebInspector.workspace.addEventListener(WebInspector.Workspace.E vents.WorkingCopyCommitted, contentCommitted, this);
108 uiSourceCodes[0].addRevision("<Modified UISourceCode content>"); 93 uiSourceCodes[0].addRevision("<Modified UISourceCode content>");
109 } 94 }
110 95
111 function contentCommitted() 96 function contentCommitted()
112 { 97 {
113 InspectorTest.addResult("After revision added:"); 98 InspectorTest.addResult("After revision added:");
114 InspectorTest.dumpUISourceCode(uiSourceCodes[0], finalize); 99 InspectorTest.dumpUISourceCode(uiSourceCodes[0], finalize);
115 } 100 }
116 101
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 193 }
209 } 194 }
210 ]); 195 ]);
211 }; 196 };
212 </script> 197 </script>
213 </head> 198 </head>
214 <body onload="runTest()"> 199 <body onload="runTest()">
215 <p>Tests file system project.</p> 200 <p>Tests file system project.</p>
216 </body> 201 </body>
217 </html> 202 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698