| OLD | NEW |
| 1 Test transaction aborts send the proper onabort messages.. | 1 Test transaction aborts send the proper onabort messages.. |
| 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-abort.html" | 6 dbname = "transaction-abort.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 trans = db.transaction(['storeName'], 'readwrite') | 11 trans = db.transaction(['storeName'], 'readwrite') |
| 14 trans.onabort = transactionAborted | 12 trans.onabort = transactionAborted |
| 15 trans.oncomplete = unexpectedCompleteCallback | 13 trans.oncomplete = unexpectedCompleteCallback |
| 16 store = trans.objectStore('storeName') | 14 store = trans.objectStore('storeName') |
| 17 store.add({x: 'value2', y: 'zzz2'}, 'key2') | 15 store.add({x: 'value2', y: 'zzz2'}, 'key2') |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction
has finished. | 40 Exception message: Failed to execute 'add' on 'IDBObjectStore': The transaction
has finished. |
| 43 Expecting exception from trans.abort() | 41 Expecting exception from trans.abort() |
| 44 PASS Exception was thrown. | 42 PASS Exception was thrown. |
| 45 PASS code is DOMException.INVALID_STATE_ERR | 43 PASS code is DOMException.INVALID_STATE_ERR |
| 46 PASS ename is 'InvalidStateError' | 44 PASS ename is 'InvalidStateError' |
| 47 Exception message: Failed to execute 'abort' on 'IDBTransaction': The transactio
n has finished. | 45 Exception message: Failed to execute 'abort' on 'IDBTransaction': The transactio
n has finished. |
| 48 PASS successfullyParsed is true | 46 PASS successfullyParsed is true |
| 49 | 47 |
| 50 TEST COMPLETE | 48 TEST COMPLETE |
| 51 | 49 |
| OLD | NEW |