| OLD | NEW |
| 1 Test IndexedDB: request result persists in setTimeout callback | 1 Test IndexedDB: request result persists in setTimeout callback |
| 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 = "odd-result-order.html" | 6 dbname = "odd-result-order.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 objectStore = db.createObjectStore('foo', { keyPath: 'key', autoIncrement: true
}); | 9 objectStore = db.createObjectStore('foo', { keyPath: 'key', autoIncrement: true
}); |
| 12 index = objectStore.createIndex('foo', 'index'); | 10 index = objectStore.createIndex('foo', 'index'); |
| 13 openSuccess(): | 11 openSuccess(): |
| 14 db = null; | 12 db = null; |
| 15 db = request.result; | 13 db = request.result; |
| 16 checkDatabaseType(): | 14 checkDatabaseType(): |
| 17 PASS db instanceof IDBDatabase is true | 15 PASS db instanceof IDBDatabase is true |
| (...skipping 15 matching lines...) Expand all Loading... |
| 33 PASS record.key is data.key | 31 PASS record.key is data.key |
| 34 PASS record.index is data.index | 32 PASS record.index is data.index |
| 35 deleteRecord(): | 33 deleteRecord(): |
| 36 objectStore = db.transaction('foo', 'readwrite').objectStore('foo'); | 34 objectStore = db.transaction('foo', 'readwrite').objectStore('foo'); |
| 37 request = objectStore.delete(data.key); | 35 request = objectStore.delete(data.key); |
| 38 deleteSuccess(): | 36 deleteSuccess(): |
| 39 PASS successfullyParsed is true | 37 PASS successfullyParsed is true |
| 40 | 38 |
| 41 TEST COMPLETE | 39 TEST COMPLETE |
| 42 | 40 |
| OLD | NEW |