if (this.importScripts) { importScripts('../resources/fs-worker-common.js'); importScripts('../../js/resources/js-test-pre.js'); importScripts('../resources/fs-test-util.js'); } description("DirectoryEntry required arguments test."); var fileSystem = null; function errorCallback(error) { debug("Error occured while requesting a TEMPORARY file system:" + error.code); finishJSTest(); } function successCallback(fs) { fileSystem = fs; debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name); root = evalAndLog("root = fileSystem.root"); shouldThrow("root.getDirectory()"); finishJSTest(); } var jsTestIsAsync = true; evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallback);"); var successfullyParsed = true;