OLD | NEW |
1 CONSOLE ERROR: line 52: Uncaught Error: This should *NOT* be caught! | 1 CONSOLE ERROR: line 52: Uncaught Error: This should *NOT* be caught! |
2 Ensure that aborted VERSION_CHANGE transactions are completely rolled back | 2 Ensure that aborted VERSION_CHANGE transactions are completely rolled back |
3 | 3 |
4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". | 4 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
5 | 5 |
6 | 6 |
7 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; | |
8 | |
9 dbname = "version-change-abort.html" | 7 dbname = "version-change-abort.html" |
10 indexedDB.deleteDatabase(dbname) | 8 indexedDB.deleteDatabase(dbname) |
11 indexedDB.open(dbname) | 9 indexedDB.open(dbname) |
12 PASS trans instanceof IDBTransaction is true | 10 PASS trans instanceof IDBTransaction is true |
13 store = db.createObjectStore('store1') | 11 store = db.createObjectStore('store1') |
14 setVersion1 complete | 12 setVersion1 complete |
15 PASS db.version is 1 | 13 PASS db.version is 1 |
16 | 14 |
17 vcreq = indexedDB.open(dbname, 2) | 15 vcreq = indexedDB.open(dbname, 2) |
18 setVersion2() callback | 16 setVersion2() callback |
19 PASS db.version is 2 | 17 PASS db.version is 2 |
20 PASS vcreq.transaction instanceof IDBTransaction is true | 18 PASS vcreq.transaction instanceof IDBTransaction is true |
21 store = db.deleteObjectStore('store1') | 19 store = db.deleteObjectStore('store1') |
22 store = db.createObjectStore('store2') | 20 store = db.createObjectStore('store2') |
23 raising exception | 21 raising exception |
24 | 22 |
25 setVersion2Abort() callback | 23 setVersion2Abort() callback |
26 request = indexedDB.open(dbname) | 24 request = indexedDB.open(dbname) |
27 PASS db.version is 1 | 25 PASS db.version is 1 |
28 PASS db.objectStoreNames.contains('store1') is true | 26 PASS db.objectStoreNames.contains('store1') is true |
29 PASS db.objectStoreNames.contains('store2') is false | 27 PASS db.objectStoreNames.contains('store2') is false |
30 PASS successfullyParsed is true | 28 PASS successfullyParsed is true |
31 | 29 |
32 TEST COMPLETE | 30 TEST COMPLETE |
33 | 31 |
OLD | NEW |