tizen beta release
[profile/ivi/webkit-efl.git] / LayoutTests / fast / filesystem / resources / simple-temporary.js
1 if (this.importScripts) {
2     importScripts('../resources/fs-worker-common.js');
3     importScripts('../resources/fs-test-util.js');
4 }
5
6 description("requestFileSystem TEMPORARY test.");
7
8 var fileSystem = null;
9
10 function errorCallback(error) {
11     debug('Error occured while requesting a TEMPORARY file system:' + error.code);
12     finishJSTest();
13 }
14
15 function successCallback(fs) {
16     fileSystem = fs;
17     debug("Successfully obtained TEMPORARY FileSystem:" + fileSystem.name);
18     shouldBeTrue("fileSystem.name.length > 0");
19     shouldBe("fileSystem.root.fullPath", '"/"');
20     finishJSTest();
21 }
22
23 var jsTestIsAsync = true;
24 webkitRequestFileSystem(TEMPORARY, 100, successCallback, errorCallback);