blob: 88177eff3fcba852eba53f911e2710656d748354 [file] [log] [blame]
importScripts('../resources/fs-worker-common.js');
importScripts('../../../resources/js-test.js');
importScripts('../resources/fs-test-util.js');
description('This test tries calling various 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)");
entry.remove();
fileSystem = webkitRequestFileSystem(self.TEMPORARY, null);
finishJSTest();