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.writeFile("/hoge", "fuga", testStep.shift()); | 16 InspectorTest.writeFile("/hoge", "fuga", testStep.shift()); |
17 }, | 17 }, |
18 | 18 |
19 function() | 19 function() |
20 { | 20 { |
21 fileSystemModel.requestMetadata(new InspectorTest.MockEntry("Invalid
URL"), testStep.shift()); | 21 fileSystemModel.requestMetadata(new InspectorTest.MockEntry("Invalid
URL"), testStep.shift()); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 ]; | 69 ]; |
70 | 70 |
71 InspectorTest.clearFileSystem(testStep.shift()); | 71 InspectorTest.clearFileSystem(testStep.shift()); |
72 } | 72 } |
73 </script> | 73 </script> |
74 </head> | 74 </head> |
75 <body> | 75 <body> |
76 <p>Tests requestMetadata command.</p> | 76 <p>Tests requestMetadata command.</p> |
77 </body> | 77 </body> |
78 </html> | 78 </html> |
OLD | NEW |