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 // FIXME: Add API to delete a FileSystem completely and test getFile
SystemRoot for | 16 // FIXME: Add API to delete a FileSystem completely and test getFile
SystemRoot for |
17 // uninitialized FileSystem. | 17 // uninitialized FileSystem. |
18 InspectorTest.createFile("/hoge", testStep.shift()); | 18 InspectorTest.createFile("/hoge", testStep.shift()); |
19 }, | 19 }, |
20 | 20 |
21 function() | 21 function() |
(...skipping 27 matching lines...) Expand all Loading... |
49 ]; | 49 ]; |
50 | 50 |
51 InspectorTest.clearFileSystem(testStep.shift()); | 51 InspectorTest.clearFileSystem(testStep.shift()); |
52 } | 52 } |
53 </script> | 53 </script> |
54 </head> | 54 </head> |
55 <body> | 55 <body> |
56 <p>Tests requestFileSystemRoot command.</p> | 56 <p>Tests requestFileSystemRoot command.</p> |
57 </body> | 57 </body> |
58 </html> | 58 </html> |
OLD | NEW |