Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / empty-filesystem-file-expected.txt
blob471e9016f76cad9a71ce8c5b06fbb9c075a4faed
1 Confirm that IndexedDB can store an empty File from the Filesystem API
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 Got FileSystem:file__0:Temporary
7 dbname = "empty-filesystem-file.html"
8 indexedDB.deleteDatabase(dbname)
9 indexedDB.open(dbname)
10 store = db.createObjectStore('storeName')
11 store.put('value', 'key')
13 testEmptyFilesystemFile():
14 file = window.emptyFile
16 validateResult(file):
17 PASS file.size == 0 is true
18 transaction = db.transaction('storeName', 'readwrite')
19 store = transaction.objectStore('storeName')
20 store.put(file, 'filekey')
21 transaction = db.transaction('storeName', 'readwrite')
22 store = transaction.objectStore('storeName')
23 request = store.get('filekey')
24 PASS event.target.result.size == 0 is true
25 PASS successfullyParsed is true
27 TEST COMPLETE