| 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('../../../resources/js-test.js'); |
| 4 importScripts('../resources/fs-test-util.js'); | 4 importScripts('../resources/fs-test-util.js'); |
| 5 } | 5 } |
| 6 | 6 |
| 7 description("Test making multiple synchronous FileSystem operations."); | 7 description("Test making multiple synchronous FileSystem operations."); |
| 8 | 8 |
| 9 var fileSystem = webkitRequestFileSystemSync(this.TEMPORARY, 100); | 9 var fileSystem = webkitRequestFileSystemSync(this.TEMPORARY, 100); |
| 10 removeAllInDirectorySync(fileSystem.root); | 10 removeAllInDirectorySync(fileSystem.root); |
| 11 | 11 |
| 12 // Stage 1 (prepare) | 12 // Stage 1 (prepare) |
| 13 var a = fileSystem.root.getFile('a', {create:true}); | 13 var a = fileSystem.root.getFile('a', {create:true}); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 36 if (entries[i].isDirectory) | 36 if (entries[i].isDirectory) |
| 37 dirsCount++; | 37 dirsCount++; |
| 38 } | 38 } |
| 39 } while (entries.length); | 39 } while (entries.length); |
| 40 | 40 |
| 41 paths.sort(); | 41 paths.sort(); |
| 42 shouldBe('"' + paths.join(',') + '"', '"/a,/b,/c,/d2,/e,/f"'); | 42 shouldBe('"' + paths.join(',') + '"', '"/a,/b,/c,/d2,/e,/f"'); |
| 43 shouldBe("dirsCount", "3"); | 43 shouldBe("dirsCount", "3"); |
| 44 removeAllInDirectorySync(fileSystem.root); | 44 removeAllInDirectorySync(fileSystem.root); |
| 45 finishJSTest(); | 45 finishJSTest(); |
| OLD | NEW |