| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <meta charset="UTF-8"> | 4 <meta charset="UTF-8"> |
| 5 <script src="../inspector-test.js"></script> | 5 <script src="../inspector-test.js"></script> |
| 6 <script src="filesystem-test.js"></script> | 6 <script src="filesystem-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 document.addEventListener("DOMContentLoaded", runTest); | 8 document.addEventListener("DOMContentLoaded", runTest); |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 var fileSystemModel = new WebInspector.FileSystemModel(WebInspector.targetMa
nager.activeTarget()); | 11 var fileSystemModel = new WebInspector.FileSystemModel(WebInspector.targetMa
nager.mainTarget()); |
| 12 | 12 |
| 13 var testStep = [ | 13 var testStep = [ |
| 14 function() | 14 function() |
| 15 { | 15 { |
| 16 InspectorTest.createDirectory("/hoge", testStep.shift()); | 16 InspectorTest.createDirectory("/hoge", testStep.shift()); |
| 17 }, | 17 }, |
| 18 | 18 |
| 19 function() | 19 function() |
| 20 { | 20 { |
| 21 InspectorTest.writeFile("/hoge/fuga.txt", "piPASSyo", testStep.shift
()); | 21 InspectorTest.writeFile("/hoge/fuga.txt", "piPASSyo", testStep.shift
()); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 ]; | 70 ]; |
| 71 | 71 |
| 72 InspectorTest.clearFileSystem(testStep.shift()); | 72 InspectorTest.clearFileSystem(testStep.shift()); |
| 73 } | 73 } |
| 74 </script> | 74 </script> |
| 75 </head> | 75 </head> |
| 76 <body> | 76 <body> |
| 77 <p>Tests requestFileContent command.</p> | 77 <p>Tests requestFileContent command.</p> |
| 78 </body> | 78 </body> |
| 79 </html> | 79 </html> |
| OLD | NEW |