OLD | NEW |
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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 var dir = fs.root.mkdir("html"); | 181 var dir = fs.root.mkdir("html"); |
182 dir.addFile("foo.js", ""); | 182 dir.addFile("foo.js", ""); |
183 fs.reportCreated(dumpFileSystem); | 183 fs.reportCreated(dumpFileSystem); |
184 | 184 |
185 function dumpFileSystem() | 185 function dumpFileSystem() |
186 { | 186 { |
187 InspectorTest.addResult("-- Original tree --"); | 187 InspectorTest.addResult("-- Original tree --"); |
188 dumpWorkspaceUISourceCodes(); | 188 dumpWorkspaceUISourceCodes(); |
189 | 189 |
190 dir.addFile("bar.js", ""); | 190 dir.addFile("bar.js", ""); |
191 InspectorFrontendHost.events.dispatchEventToListeners(InspectorF
rontendHostAPI.Events.FileSystemFilesChanged, ["/var/www4/html/bar.js"]); | 191 InspectorFrontendHost.events.dispatchEventToListeners(InspectorF
rontendHostAPI.Events.FileSystemFilesChanged, {changedPaths: ["/var/www4/html/ba
r.js"], addedPaths: [], removedPaths: []}); |
192 | 192 |
193 InspectorTest.addResult("-- File added externally --"); | 193 InspectorTest.addResult("-- File added externally --"); |
194 dumpWorkspaceUISourceCodes(); | 194 dumpWorkspaceUISourceCodes(); |
195 fs.reportRemoved(); | 195 fs.reportRemoved(); |
196 next(); | 196 next(); |
197 } | 197 } |
198 } | 198 } |
199 ]); | 199 ]); |
200 }; | 200 }; |
201 </script> | 201 </script> |
202 </head> | 202 </head> |
203 <body onload="runTest()"> | 203 <body onload="runTest()"> |
204 <p>Tests file system project.</p> | 204 <p>Tests file system project.</p> |
205 </body> | 205 </body> |
206 </html> | 206 </html> |
OLD | NEW |