Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / filesystem / resources / simple-required-arguments-getmetadata.js
blob9d9760ba1b09c83282a5daf08c1e581199f8d95d
1 if (this.importScripts) {
2 importScripts('../resources/fs-worker-common.js');
3 importScripts('../../../resources/js-test.js');
4 importScripts('../resources/fs-test-util.js');
7 description("DirectoryEntry.getMetadata required arguments test.");
9 var fileSystem = null;
11 function errorCallback(error) {
12 debug("Error occured while requesting a TEMPORARY file system:" + error.name);
13 finishJSTest();
16 function successCallback(fs) {
17 fileSystem = fs;
18 debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name);
19 root = evalAndLog("root = fileSystem.root");
20 shouldThrow("root.getMetadata()");
21 finishJSTest();
24 var jsTestIsAsync = true;
25 evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallback);");
26 var successfullyParsed = true;