Index: third_party/WebKit/LayoutTests/fast/filesystem/resources/null-arguments-worker.js |
diff --git a/third_party/WebKit/LayoutTests/fast/filesystem/resources/null-arguments-worker.js b/third_party/WebKit/LayoutTests/fast/filesystem/resources/null-arguments-worker.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5e8c55b31775830cd021f611238efd72f8dcb2a3 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/filesystem/resources/null-arguments-worker.js |
@@ -0,0 +1,14 @@ |
+importScripts('../resources/fs-worker-common.js'); |
+importScripts('../../../resources/js-test.js'); |
+importScripts('../resources/fs-test-util.js'); |
+ |
+description('This test tries calling various sync filesystem functions with null arguments.'); |
+ |
+fileSystem = webkitRequestFileSystemSync(self.TEMPORARY, 100); |
+ |
+shouldThrow("fileSystem.root.moveTo(null, 'x')"); |
+shouldThrow("fileSystem.root.copyTo(null, 'x')"); |
+entry = fileSystem.root.getFile("/test", { create: true }); |
+writer = entry.createWriter(); |
+shouldThrow("writer.write(null)"); |
+finishJSTest(); |