| OLD | NEW |
| 1 if (this.importScripts) { | 1 if (this.importScripts) { |
| 2 importScripts('fs-worker-common.js'); | 2 importScripts('fs-worker-common.js'); |
| 3 importScripts('../../js/resources/js-test-pre.js'); | 3 importScripts('../../../resources/js-test.js'); |
| 4 importScripts('fs-test-util.js'); | 4 importScripts('fs-test-util.js'); |
| 5 } | 5 } |
| 6 | 6 |
| 7 description("Obtaining File from FileEntry."); | 7 description("Obtaining File from FileEntry."); |
| 8 | 8 |
| 9 var fileSystem = null; | 9 var fileSystem = null; |
| 10 var testFileName = '/testFileEntry.txt'; | 10 var testFileName = '/testFileEntry.txt'; |
| 11 var testFileEntry = null; | 11 var testFileEntry = null; |
| 12 var testFile = null; | 12 var testFile = null; |
| 13 | 13 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 33 fileSystem.root.getFile(testFileName, {create:true}, getFileFromEntry, error
Callback); | 33 fileSystem.root.getFile(testFileName, {create:true}, getFileFromEntry, error
Callback); |
| 34 } | 34 } |
| 35 | 35 |
| 36 function fileSystemCallback(fs) { | 36 function fileSystemCallback(fs) { |
| 37 fileSystem = fs; | 37 fileSystem = fs; |
| 38 removeAllInDirectory(fileSystem.root, createTestFile, errorCallback); | 38 removeAllInDirectory(fileSystem.root, createTestFile, errorCallback); |
| 39 } | 39 } |
| 40 | 40 |
| 41 var jsTestIsAsync = true; | 41 var jsTestIsAsync = true; |
| 42 webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCallback); | 42 webkitRequestFileSystem(TEMPORARY, 100, fileSystemCallback, errorCallback); |
| OLD | NEW |