OLD | NEW |
1 Ensure pending open waits for version change transaction to complete. | 1 Ensure pending open waits for version change transaction to complete. |
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 = "version-change-exclusive.html" | 6 dbname = "version-change-exclusive.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 calling open() - callback should wait until VERSION_CHANGE transaction is comple
te | 9 calling open() - callback should wait until VERSION_CHANGE transaction is comple
te |
12 indexedDB.open(dbname) | 10 indexedDB.open(dbname) |
13 setVersion() callback | 11 setVersion() callback |
14 starting work in VERSION_CHANGE transaction | 12 starting work in VERSION_CHANGE transaction |
15 self.state = 'VERSION_CHANGE started' | 13 self.state = 'VERSION_CHANGE started' |
16 store = db.createObjectStore('test-store') | 14 store = db.createObjectStore('test-store') |
17 Expecting exception from db.transaction('test-store') | 15 Expecting exception from db.transaction('test-store') |
(...skipping 22 matching lines...) Expand all Loading... |
40 store.put(9, 9) | 38 store.put(9, 9) |
41 in put's onsuccess | 39 in put's onsuccess |
42 ending work in VERSION_CHANGE transaction | 40 ending work in VERSION_CHANGE transaction |
43 self.state = 'VERSION_CHANGE finished' | 41 self.state = 'VERSION_CHANGE finished' |
44 open() callback - this should appear after VERSION_CHANGE transaction ends | 42 open() callback - this should appear after VERSION_CHANGE transaction ends |
45 PASS self.state is "VERSION_CHANGE finished" | 43 PASS self.state is "VERSION_CHANGE finished" |
46 PASS successfullyParsed is true | 44 PASS successfullyParsed is true |
47 | 45 |
48 TEST COMPLETE | 46 TEST COMPLETE |
49 | 47 |
OLD | NEW |