OLD | NEW |
1 Test that pending transactions are not completed during recursive JS calls until
all JS (in all frames) is finished. | 1 Test that pending transactions are not completed during recursive JS calls until
all JS (in all frames) is finished. |
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 = "transaction-complete-with-js-recursion-cross-frame.html" | 6 dbname = "transaction-complete-with-js-recursion-cross-frame.html" |
9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
11 pendingTransaction = db.transaction(['objectStore'], 'readwrite') | 9 pendingTransaction = db.transaction(['objectStore'], 'readwrite') |
12 Start re-entrant JS | 10 Start re-entrant JS |
13 transaction = db.transaction(['objectStore'], 'readwrite') | 11 transaction = db.transaction(['objectStore'], 'readwrite') |
14 End re-entrant JS | 12 End re-entrant JS |
15 store = pendingTransaction.objectStore('objectStore') | 13 store = pendingTransaction.objectStore('objectStore') |
16 PASS store !== undefined is true | 14 PASS store !== undefined is true |
17 Pending transaction completed | 15 Pending transaction completed |
18 PASS successfullyParsed is true | 16 PASS successfullyParsed is true |
19 | 17 |
20 TEST COMPLETE | 18 TEST COMPLETE |
21 | 19 |
OLD | NEW |