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

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: Add assertions about writer error state Created 5 years, 1 month 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..499a6e807196bc61d706b6f9bb06e2b2c10f65d7
--- /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)");
+shouldThrow("fileSystem.root.copyTo(null)");
+entry = fileSystem.root.getFile("/test", { create: true });
+writer = entry.createWriter();
+shouldThrow("writer.write(null)");
+finishJSTest();

Powered by Google App Engine
This is Rietveld 408576698