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

Side by Side Diff: LayoutTests/storage/indexeddb/blob-valid-after-deletion-expected.txt

Issue 18590006: Blob support for IDB [Blink] (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: aaaaaaaand one more nit. Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 Confirm that blobs stay alive after their records are deleted.
2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4
5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7
8 dbname = "blob-valid-after-deletion.html"
9 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname)
11 store = db.createObjectStore('store')
12 store.put(value, key)
13
14 doRead():
15 trans = db.transaction('store')
16 store = trans.objectStore('store')
17 request = store.get(key)
18 trans = db.transaction('store', 'readwrite')
19 store = trans.objectStore('store')
20 request = store.delete(key)
21 PASS document.getElementById('frame0').contentDocument.body.innerText is blobACo ntent
22 PASS document.getElementById('frame1').contentDocument.body.innerText is blobACo ntent
23 PASS document.getElementById('frame2').contentDocument.body.innerText is blobBCo ntent
24 PASS successfullyParsed is true
25
26 TEST COMPLETE
27
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698