summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js
diff options
context:
space:
mode:
authorcommit-queue@webkit.org <commit-queue@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2011-12-22 08:48:01 +0000
committercommit-queue@webkit.org <commit-queue@webkit.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538>2011-12-22 08:48:01 +0000
commit812ebb2012ff313211c91a915e831daf0e659a70 (patch)
tree43eca58edd6b9673ad656e7e81e9eb6905ad1e39 /third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js
parent5cfb71ae2b7380c0ed20c8310a21d293010b140c (diff)
downloadchromium_src-812ebb2012ff313211c91a915e831daf0e659a70.zip
chromium_src-812ebb2012ff313211c91a915e831daf0e659a70.tar.gz
chromium_src-812ebb2012ff313211c91a915e831daf0e659a70.tar.bz2
[FileSystem API] Entry.getMetadata successCallback is required
https://bugs.webkit.org/show_bug.cgi?id=69638 Patch by Mark Pilgrim <pilgrim@chromium.org> on 2011-12-22 Reviewed by Eric Seidel. Source/WebCore: Test: fast/filesystem/simple-required-arguments-getmetadata.html * fileapi/Entry.idl: remove [Optional] flag from successCallback parameter LayoutTests: * fast/filesystem/resources/simple-required-arguments-getmetadata.js: Added. (errorCallback): (successCallback): * fast/filesystem/simple-required-arguments-getmetadata-expected.txt: Added. * fast/filesystem/simple-required-arguments-getmetadata.html: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@103501 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js')
-rw-r--r--third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js b/third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js
new file mode 100644
index 0000000..7231381
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/filesystem/resources/simple-required-arguments-getmetadata.js
@@ -0,0 +1,25 @@
+if (this.importScripts) {
+ importScripts('../resources/fs-worker-common.js');
+ importScripts('../resources/fs-test-util.js');
+}
+
+description("DirectoryEntry.getMetadata 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.getMetadata()");
+ finishJSTest();
+}
+
+var jsTestIsAsync = true;
+evalAndLog("webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallback);");
+var successfullyParsed = true;