OLD | NEW |
1 Test event propogation on IDBRequest. | 1 Test event propogation on IDBRequest. |
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 = "request-event-propagation.html" | 6 dbname = "request-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 Verify that handler fires and that not preventing default will result in an abor
t | 11 Verify that handler fires and that not preventing default will result in an abor
t |
14 trans = db.transaction(['storeName'], 'readwrite') | 12 trans = db.transaction(['storeName'], 'readwrite') |
15 trans.onabort = transactionAborted | 13 trans.onabort = transactionAborted |
16 trans.oncomplete = unexpectedCompleteCallback | 14 trans.oncomplete = unexpectedCompleteCallback |
17 trans.onerror = allowDefault | 15 trans.onerror = allowDefault |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 PASS dbCaptureFired is true | 136 PASS dbCaptureFired is true |
139 PASS captureFired is true | 137 PASS captureFired is true |
140 PASS requestFired is true | 138 PASS requestFired is true |
141 PASS bubbleFired is false | 139 PASS bubbleFired is false |
142 PASS dbBubbleFired is false | 140 PASS dbBubbleFired is false |
143 | 141 |
144 PASS successfullyParsed is true | 142 PASS successfullyParsed is true |
145 | 143 |
146 TEST COMPLETE | 144 TEST COMPLETE |
147 | 145 |
OLD | NEW |