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)
10 store = db.createObjectStore('storeName')
11 store.put('value', 'key')
13 testEmptyFilesystemFile():
14 file = window.emptyFile
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