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

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

Issue 2780903003: DevTools: [Workspaces] remove support for .devtools file (Closed)
Patch Set: rebaseline 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="../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/isolated-filesystem-test.js"></script> 5 <script src="../http/tests/inspector/isolated-filesystem-test.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 function fileSystemUISourceCodes() 9 function fileSystemUISourceCodes()
10 { 10 {
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 { 171 {
172 fileSystemUISourceCodes()[0].project().excludeFolder("file:///va r/www3/html2/"); 172 fileSystemUISourceCodes()[0].project().excludeFolder("file:///va r/www3/html2/");
173 InspectorTest.addResult(""); 173 InspectorTest.addResult("");
174 InspectorTest.addResult("-- Excluded /html2/ --"); 174 InspectorTest.addResult("-- Excluded /html2/ --");
175 dumpWorkspaceUISourceCodes(); 175 dumpWorkspaceUISourceCodes();
176 fs.reportRemoved(); 176 fs.reportRemoved();
177 next(); 177 next();
178 } 178 }
179 }, 179 },
180 180
181 function testExcludesViaProject(next)
182 {
183 var fs = new InspectorTest.TestFileSystem("file:///var/www3");
184 fs.root.addFile(".devtools", JSON.stringify({excludes:["/html2/"]})) ;
185 fs.root.mkdir("html").addFile("foo.js", "");
186 fs.root.mkdir(".git").addFile("foogit.js", "");
187 fs.root.addFile("bar.js", "");
188 fs.root.mkdir("html2").addFile("foo.js", "");
189 fs.reportCreated(dumpExcludes);
190
191 function dumpExcludes()
192 {
193 InspectorTest.addResult("");
194 InspectorTest.addResult("-- Excluded /html2/ via .devtools --");
195 dumpWorkspaceUISourceCodes();
196 fs.reportRemoved();
197 next();
198 }
199 },
200
201 function testFileAddedExternally(next) 181 function testFileAddedExternally(next)
202 { 182 {
203 var fs = new InspectorTest.TestFileSystem("file:///var/www4"); 183 var fs = new InspectorTest.TestFileSystem("file:///var/www4");
204 var dir = fs.root.mkdir("html"); 184 var dir = fs.root.mkdir("html");
205 dir.addFile("foo.js", ""); 185 dir.addFile("foo.js", "");
206 fs.reportCreated(dumpFileSystem); 186 fs.reportCreated(dumpFileSystem);
207 187
208 function dumpFileSystem() 188 function dumpFileSystem()
209 { 189 {
210 InspectorTest.addResult("-- Original tree --"); 190 InspectorTest.addResult("-- Original tree --");
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 292 }
313 } 293 }
314 ]); 294 ]);
315 }; 295 };
316 </script> 296 </script>
317 </head> 297 </head>
318 <body onload="runTest()"> 298 <body onload="runTest()">
319 <p>Tests file system project.</p> 299 <p>Tests file system project.</p>
320 </body> 300 </body>
321 </html> 301 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698