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

Unified Diff: third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html

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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/filesystem/null-arguments-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html
diff --git a/third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html b/third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html
new file mode 100644
index 0000000000000000000000000000000000000000..19495e4300d6fdf35171c99258e39a3a55612c01
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/filesystem/null-arguments.html
@@ -0,0 +1,40 @@
+<html>
+<head>
+<script src="../../resources/js-test.js"></script>
+<script src="resources/fs-test-util.js"></script>
+</head>
+<body>
+<script>
+description('This test tries calling various filesystem functions with null arguments.');
+
+function errorCallback(error)
+{
+ debug("Error occured: " + error.name);
+ finishJSTest();
+}
+
+function successCallback(fs)
+{
+ window.fileSystem = fs;
+ debug("Successfully obtained FileSystem: " + fileSystem.name);
+
+ fileSystem.root.getFile("/test", { create: true }, function(entry) {
+ entry.createWriter(function(writer) {
+ window.writer = writer;
+ shouldBeNull("writer.error");
+ shouldThrow("writer.write(null)");
+ shouldBeNull("writer.error");
+ finishJSTest();
+ });
+ });
+}
+
+if (window.webkitRequestFileSystem) {
+ webkitRequestFileSystem(window.TEMPORARY, 100, successCallback, errorCallback);
+ window.jsTestIsAsync = true;
+} else {
+ debug("This test requires FileSystem API support.");
+}
+</script>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/filesystem/null-arguments-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698