OLD | NEW |
1 Confirm that blobs can be read back before their records are committed. | 1 Confirm that blobs can be read back before their records are committed. |
2 | 2 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 4 |
5 | 5 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
7 | |
8 dbname = "blob-valid-before-commit.html" | 6 dbname = "blob-valid-before-commit.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 store = db.createObjectStore('store') | 9 store = db.createObjectStore('store') |
12 store.put(value, key) | 10 store.put(value, key) |
13 request = store.get(key) | 11 request = store.get(key) |
14 PASS document.getElementById('frame0').contentDocument.body.innerText is blobACo
ntent | 12 PASS document.getElementById('frame0').contentDocument.body.innerText is blobACo
ntent |
15 PASS document.getElementById('frame1').contentDocument.body.innerText is blobACo
ntent | 13 PASS document.getElementById('frame1').contentDocument.body.innerText is blobACo
ntent |
16 PASS document.getElementById('frame2').contentDocument.body.innerText is blobBCo
ntent | 14 PASS document.getElementById('frame2').contentDocument.body.innerText is blobBCo
ntent |
17 PASS successfullyParsed is true | 15 PASS successfullyParsed is true |
18 | 16 |
19 TEST COMPLETE | 17 TEST COMPLETE |
20 | 18 |
OLD | NEW |