OLD | NEW |
1 Test IndexedDB opening database connections during transactions | 1 Test IndexedDB opening database connections during transactions |
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 = "open-during-transaction.html" | 6 dbname = "open-during-transaction.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 dbc1.createObjectStore('storeName') | 9 dbc1.createObjectStore('storeName') |
12 database preparation complete | 10 database preparation complete |
13 | 11 |
14 starting transaction | 12 starting transaction |
15 state = 'starting' | 13 state = 'starting' |
16 trans = dbc1.transaction('storeName', 'readwrite') | 14 trans = dbc1.transaction('storeName', 'readwrite') |
17 the transaction is kept alive with a series of puts until opens are complete | 15 the transaction is kept alive with a series of puts until opens are complete |
(...skipping 12 matching lines...) Expand all Loading... |
30 PASS state is "open2complete" | 28 PASS state is "open2complete" |
31 state = 'open3complete' | 29 state = 'open3complete' |
32 | 30 |
33 transaction complete | 31 transaction complete |
34 PASS state is "open3complete" | 32 PASS state is "open3complete" |
35 | 33 |
36 PASS successfullyParsed is true | 34 PASS successfullyParsed is true |
37 | 35 |
38 TEST COMPLETE | 36 TEST COMPLETE |
39 | 37 |
OLD | NEW |