| OLD | NEW |
| 1 Checks that garbage collection doesn't reclaim objects with pending activity | 1 Checks that garbage collection doesn't reclaim objects with pending activity |
| 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 = "pending-activity.html" | 6 dbname = "pending-activity.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 | 9 |
| 12 prepareDatabase(): | 10 prepareDatabase(): |
| 13 store = db.createObjectStore('store') | 11 store = db.createObjectStore('store') |
| 14 store.put(0, 0) | 12 store.put(0, 0) |
| 15 | 13 |
| 16 testTransaction(): | 14 testTransaction(): |
| 17 transaction = db.transaction('store') | 15 transaction = db.transaction('store') |
| (...skipping 21 matching lines...) Expand all Loading... |
| 39 cursor.continue() | 37 cursor.continue() |
| 40 request.onsuccess = cursorRequestOnSecondSuccess | 38 request.onsuccess = cursorRequestOnSecondSuccess |
| 41 request = null | 39 request = null |
| 42 self.gc() | 40 self.gc() |
| 43 PASS Request 'success' event fired. | 41 PASS Request 'success' event fired. |
| 44 | 42 |
| 45 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
| 46 | 44 |
| 47 TEST COMPLETE | 45 TEST COMPLETE |
| 48 | 46 |
| OLD | NEW |