OLD | NEW |
1 Verify that a transaction with an error aborts unless preventDefault() is called
. | 1 Verify that a transaction with an error aborts unless preventDefault() is called
. |
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 = "error-causes-abort-by-default.html" | 6 dbname = "error-causes-abort-by-default.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 setVersionSuccess(): | 9 setVersionSuccess(): |
12 trans = event.target.transaction | 10 trans = event.target.transaction |
13 PASS trans is non-null. | 11 PASS trans is non-null. |
14 db.createObjectStore('storeName', null) | 12 db.createObjectStore('storeName', null) |
15 trans = db.transaction(['storeName'], 'readwrite') | 13 trans = db.transaction(['storeName'], 'readwrite') |
16 trans.onabort = unexpectedAbortCallback | 14 trans.onabort = unexpectedAbortCallback |
17 trans.oncomplete = transactionCompleted | 15 trans.oncomplete = transactionCompleted |
(...skipping 17 matching lines...) Expand all Loading... |
35 trans.onabort = transactionAborted2 | 33 trans.onabort = transactionAborted2 |
36 trans.oncomplete = unexpectedCompleteCallback | 34 trans.oncomplete = unexpectedCompleteCallback |
37 store = trans.objectStore('storeName') | 35 store = trans.objectStore('storeName') |
38 store.add({x: 'value', y: 'zzz'}, 'key') | 36 store.add({x: 'value', y: 'zzz'}, 'key') |
39 Omitting an onerror handler | 37 Omitting an onerror handler |
40 PASS Transaction aborted | 38 PASS Transaction aborted |
41 PASS successfullyParsed is true | 39 PASS successfullyParsed is true |
42 | 40 |
43 TEST COMPLETE | 41 TEST COMPLETE |
44 | 42 |
OLD | NEW |