OLD | NEW |
| 1 CONSOLE ERROR: line 1: ConstraintError: Key already exists in the object store. |
| 2 CONSOLE ERROR: line 1: ConstraintError: Key already exists in the object store. |
1 Verify that a transaction with an error aborts unless preventDefault() is called
. | 3 Verify that a transaction with an error aborts unless preventDefault() is called
. |
2 | 4 |
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 5 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
4 | 6 |
5 | 7 |
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | 8 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 9 |
8 dbname = "error-causes-abort-by-default.html" | 10 dbname = "error-causes-abort-by-default.html" |
9 indexedDB.deleteDatabase(dbname) | 11 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 12 indexedDB.open(dbname) |
(...skipping 24 matching lines...) Expand all Loading... |
35 trans.onabort = transactionAborted2 | 37 trans.onabort = transactionAborted2 |
36 trans.oncomplete = unexpectedCompleteCallback | 38 trans.oncomplete = unexpectedCompleteCallback |
37 store = trans.objectStore('storeName') | 39 store = trans.objectStore('storeName') |
38 store.add({x: 'value', y: 'zzz'}, 'key') | 40 store.add({x: 'value', y: 'zzz'}, 'key') |
39 Omitting an onerror handler | 41 Omitting an onerror handler |
40 PASS Transaction aborted | 42 PASS Transaction aborted |
41 PASS successfullyParsed is true | 43 PASS successfullyParsed is true |
42 | 44 |
43 TEST COMPLETE | 45 TEST COMPLETE |
44 | 46 |
OLD | NEW |