1 if (this.importScripts) {
2 importScripts('fs-worker-common.js');
3 importScripts('fs-test-util.js');
6 description("Obtaining URL from FileEntry.");
9 var testFileName = 'testFileEntry.txt';
10 var testFileURI = null;
12 function errorCallback(error) {
13 testFailed("Error occured:" + error.code);
17 function entryToURL(entry) {
18 testFileURL = entry.toURL();
19 shouldBe("testFileURL", "'filesystem:file:///temporary/testFileEntry.txt'");
23 function createTestFile() {
24 fileSystem.root.getFile(testFileName, {create:true}, entryToURL, errorCallback);
27 function fileSystemCallback(fs) {
29 removeAllInDirectory(fileSystem.root, createTestFile, errorCallback);
32 var jsTestIsAsync = true;
33 webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCallback);