| OLD | NEW |
| 1 Check that read-only transactions don't starve read-write transactions. | 1 Check that read-only transactions don't starve read-write 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 = "transaction-starvation.html" | 6 dbname = "transaction-starvation.html" |
| 9 indexedDB.deleteDatabase(dbname) | 7 indexedDB.deleteDatabase(dbname) |
| 10 indexedDB.open(dbname) | 8 indexedDB.open(dbname) |
| 11 | 9 |
| 12 prepareDatabase(): | 10 prepareDatabase(): |
| 13 db = event.target.result | 11 db = event.target.result |
| 14 db.createObjectStore('store') | 12 db.createObjectStore('store') |
| 15 | 13 |
| 16 runTransactions(): | 14 runTransactions(): |
| 17 db = event.target.result | 15 db = event.target.result |
| (...skipping 10 matching lines...) Expand all Loading... |
| 28 transaction = db.transaction('store', 'readwrite') | 26 transaction = db.transaction('store', 'readwrite') |
| 29 readWriteTransactionStarted = true | 27 readWriteTransactionStarted = true |
| 30 | 28 |
| 31 readWriteTransactionComplete(): | 29 readWriteTransactionComplete(): |
| 32 PASS Transaction wasn't starved | 30 PASS Transaction wasn't starved |
| 33 readWriteTransactionComplete = true | 31 readWriteTransactionComplete = true |
| 34 PASS successfullyParsed is true | 32 PASS successfullyParsed is true |
| 35 | 33 |
| 36 TEST COMPLETE | 34 TEST COMPLETE |
| 37 | 35 |
| OLD | NEW |