OLD | NEW |
1 if (this.importScripts) { | 1 if (this.importScripts) { |
2 importScripts('../resources/fs-worker-common.js'); | 2 importScripts('../resources/fs-worker-common.js'); |
3 importScripts('../../js/resources/js-test-pre.js'); | 3 importScripts('../../js/resources/js-test-pre.js'); |
4 importScripts('../resources/fs-test-util.js'); | 4 importScripts('../resources/fs-test-util.js'); |
5 } | 5 } |
6 | 6 |
7 description("DirectoryEntry required arguments test."); | 7 description("DirectoryEntry required arguments test."); |
8 | 8 |
9 var fileSystem = null; | 9 var fileSystem = null; |
10 | 10 |
11 function errorCallback(error) { | 11 function errorCallback(error) { |
12 debug("Error occured while requesting a TEMPORARY file system:" + error.code
); | 12 debug("Error occured while requesting a TEMPORARY file system:" + error.name
); |
13 finishJSTest(); | 13 finishJSTest(); |
14 } | 14 } |
15 | 15 |
16 function successCallback(fs) { | 16 function successCallback(fs) { |
17 fileSystem = fs; | 17 fileSystem = fs; |
18 debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name); | 18 debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name); |
19 root = evalAndLog("root = fileSystem.root"); | 19 root = evalAndLog("root = fileSystem.root"); |
20 shouldThrow("root.getDirectory()"); | 20 shouldThrow("root.getDirectory()"); |
21 finishJSTest(); | 21 finishJSTest(); |
22 } | 22 } |
23 | 23 |
24 var jsTestIsAsync = true; | 24 var jsTestIsAsync = true; |
25 evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallba
ck);"); | 25 evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallba
ck);"); |
26 var successfullyParsed = true; | 26 var successfullyParsed = true; |
OLD | NEW |