summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/filesystem/resources/file-entry-to-uri-sync.js
blob: 31483b2b68d1f28c941e015102a204cbc9b752b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
importScripts('fs-worker-common.js');
importScripts('../../../resources/js-test.js');

description("Obtaining URL from FileEntry.");

var fileSystem = webkitRequestFileSystemSync(TEMPORARY, 100);
removeAllInDirectorySync(fileSystem.root);

var testFileName = 'testFileEntry.txt';
var testFileEntry = fileSystem.root.getFile(testFileName, {create:true});

shouldBe("testFileEntry.toURL()", "'filesystem:file:///temporary/testFileEntry.txt'");

removeAllInDirectorySync(fileSystem.root);
finishJSTest();