blob: 9e1f8c3884a4cd5968412d531014f5618e432628 [file] [log] [blame]
if (this.importScripts) {
importScripts('../resources/fs-worker-common.js');
importScripts('../../../resources/js-test.js');
importScripts('../resources/fs-test-util.js');
}
description("Entry.remove() required arguments test.");
var fileSystem = null;
function errorCallback(error) {
debug("Error occurred while requesting a TEMPORARY file system:" + error.name);
finishJSTest();
}
function successCallback(fs) {
fileSystem = fs;
debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name);
root = evalAndLog("root = fileSystem.root");
shouldThrow("root.remove()");
finishJSTest();
}
var jsTestIsAsync = true;
evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallback);");
var successfullyParsed = true;