5 <script src="../inspector-test.js"></script>
6 <script src="filesystem-test.js"></script>
8 document.addEventListener("DOMContentLoaded", runTest);
11 var fileSystemModel = new WebInspector.FileSystemModel(WebInspector.targetManager.mainTarget());
16 InspectorTest.createDirectory("/hoge", testStep.shift());
21 InspectorTest.createDirectory("/hoge/fuga", testStep.shift());
26 InspectorTest.createFile("/hoge/piyo.html", testStep.shift());
31 fileSystemModel._requestDirectoryContent("InvalidURL", testStep.shift());
34 function(errorCode, entries)
36 InspectorTest.dumpDirectoryContentRequestResult(errorCode, entries);
37 fileSystemModel._requestDirectoryContent("filesystem:http://127.0.0.1:8000/InvalidType/", testStep.shift());
40 function(errorCode, entries)
42 InspectorTest.dumpDirectoryContentRequestResult(errorCode, entries);
43 fileSystemModel._requestDirectoryContent("filesystem:http://127.0.0.1:8000/temporary/hoge", testStep.shift());
46 function(errorCode, entries)
48 InspectorTest.dumpDirectoryContentRequestResult(errorCode, entries);
49 fileSystemModel._requestDirectoryContent("filesystem:http://127.0.0.1:8000/temporary/foo", testStep.shift());
52 function(errorCode, entries)
54 InspectorTest.dumpDirectoryContentRequestResult(errorCode, entries);
55 fileSystemModel._requestDirectoryContent("filesystem:http://example.com/temporary/", testStep.shift());
58 function(errorCode, entries) {
59 InspectorTest.dumpDirectoryContentRequestResult(errorCode, entries);
60 InspectorTest.clearFileSystem(testStep.shift());
65 InspectorTest.addResult("All tests have done.");
66 InspectorTest.completeTest();
70 InspectorTest.clearFileSystem(testStep.shift());
75 <p>Tests requestDirectoryContent command.</p>