Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(41)

Unified Diff: third_party/WebKit/LayoutTests/fast/filesystem/resources/null-arguments-worker.js

Issue 1480363003: Eliminate [LegacyInterfaceTypeChecking] for modules/filesystem bindings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scope to safe changes Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698