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