| 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>
|
|
|