| OLD | NEW |
| 1 importScripts('../resources/fs-worker-common.js'); | 1 importScripts('../resources/fs-worker-common.js'); |
| 2 importScripts('../../../resources/js-test.js'); | 2 importScripts('../../../resources/js-test.js'); |
| 3 importScripts('../resources/fs-test-util.js'); | 3 importScripts('../resources/fs-test-util.js'); |
| 4 | 4 |
| 5 description('This test tries calling various sync filesystem functions with null
arguments.'); | 5 description('This test tries calling various sync filesystem functions with null
arguments.'); |
| 6 | 6 |
| 7 fileSystem = webkitRequestFileSystemSync(self.TEMPORARY, 100); | 7 fileSystem = webkitRequestFileSystemSync(self.TEMPORARY, 100); |
| 8 | 8 |
| 9 shouldThrow("fileSystem.root.moveTo(null, 'x')"); | 9 shouldThrow("fileSystem.root.moveTo(null, 'x')"); |
| 10 shouldThrow("fileSystem.root.copyTo(null, 'x')"); | 10 shouldThrow("fileSystem.root.copyTo(null, 'x')"); |
| 11 entry = fileSystem.root.getFile("/test", { create: true }); | 11 entry = fileSystem.root.getFile("/test", { create: true }); |
| 12 writer = entry.createWriter(); | 12 writer = entry.createWriter(); |
| 13 shouldThrow("writer.write(null)"); | 13 shouldThrow("writer.write(null)"); |
| 14 entry.remove(); |
| 14 finishJSTest(); | 15 finishJSTest(); |
| OLD | NEW |