| OLD | NEW |
| 1 Test event propogation on IDBTransaction. | 1 Test event propogation on IDBTransaction. |
| 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 = "transaction-event-propagation.html" | 6 dbname = "transaction-event-propagation.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 store = db.createObjectStore('storeName', null) | 9 store = db.createObjectStore('storeName', null) |
| 12 store.add({x: 'value', y: 'zzz'}, 'key') | 10 store.add({x: 'value', y: 'zzz'}, 'key') |
| 13 Verifing abort | 11 Verifing abort |
| 14 trans = db.transaction(['storeName'], 'readwrite') | 12 trans = db.transaction(['storeName'], 'readwrite') |
| 15 trans.onabort = abortFiredCallback | 13 trans.onabort = abortFiredCallback |
| 16 trans.oncomplete = unexpectedAbortCallback | 14 trans.oncomplete = unexpectedAbortCallback |
| 17 db.addEventListener('abort', dbAbortCaptureCallback, true) | 15 db.addEventListener('abort', dbAbortCaptureCallback, true) |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 PASS dbCaptureFired is true | 66 PASS dbCaptureFired is true |
| 69 PASS completeFired is false | 67 PASS completeFired is false |
| 70 PASS dbBubbleFired2 is false | 68 PASS dbBubbleFired2 is false |
| 71 PASS event.target is trans | 69 PASS event.target is trans |
| 72 PASS event.currentTarget is trans | 70 PASS event.currentTarget is trans |
| 73 | 71 |
| 74 PASS successfullyParsed is true | 72 PASS successfullyParsed is true |
| 75 | 73 |
| 76 TEST COMPLETE | 74 TEST COMPLETE |
| 77 | 75 |
| OLD | NEW |