Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(541)

Side by Side Diff: LayoutTests/storage/indexeddb/empty-filesystem-file-expected.txt

Issue 433983002: LayoutTests for writing empty Blob/File/FileList to IndexedDB. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated test expectations to match ToT. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 Confirm that IndexedDB can store an empty File from the Filesystem API
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 Got FileSystem:file__0:Temporary
7 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
8
9 dbname = "empty-filesystem-file.html"
10 indexedDB.deleteDatabase(dbname)
11 indexedDB.open(dbname)
12 store = db.createObjectStore('storeName')
13 store.put('value', 'key')
14
15 testEmptyFilesystemFile():
16 file = window.emptyFile
17
18 validateResult(file):
19 PASS file.size == 0 is true
20 transaction = db.transaction('storeName', 'readwrite')
21 store = transaction.objectStore('storeName')
22 store.put(file, 'filekey')
23 transaction = db.transaction('storeName', 'readwrite')
24 store = transaction.objectStore('storeName')
25 request = store.get('filekey')
26 PASS event.target.result.size == 0 is true
27 PASS successfullyParsed is true
28
29 TEST COMPLETE
30
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/empty-filesystem-file.html ('k') | LayoutTests/storage/indexeddb/resources/empty.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698