[Worker] Test IndexedDB workers, recursion, and transaction termination.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Starting worker: resources/transaction-abort-workers.js
[Worker] indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
[Worker] 
[Worker] request = indexedDB.open('transaction-abort-worker')
[Worker] db = request.result
[Worker] request = db.setVersion('1')
[Worker] Deleted all object stores.
[Worker] trans = request.result
[Worker] db.createObjectStore('store')
[Worker] 
[Worker] createTransaction():
[Worker] transaction = db.transaction('store')
[Worker] store = transaction.objectStore('store')
PASS [Worker] Transaction aborted
[Worker] Expecting exception from store.get(0)
PASS [Worker] Exception was thrown.
PASS [Worker] code is IDBDatabaseException.TRANSACTION_INACTIVE_ERR
PASS [Worker] ename is 'TransactionInactiveError'
[Worker] 
[Worker] recursionTest():
[Worker] transaction = db.transaction('store')
[Worker] store = transaction.objectStore('store')
[Worker] store.get(0)
PASS [Worker] transaction is active
[Worker] recursion depth: 1
[Worker] store.get(0)
PASS [Worker] transaction is still active
[Worker] recursion depth: 2
[Worker] store.get(0)
PASS [Worker] transaction is still active
[Worker] recursion depth: 3
[Worker] store.get(0)
PASS [Worker] transaction is still active
[Worker] recursion depth: 3
[Worker] store.get(0)
PASS [Worker] transaction is still active
[Worker] recursion depth: 2
[Worker] store.get(0)
PASS [Worker] transaction is still active
[Worker] recursion depth: 1
[Worker] store.get(0)
PASS [Worker] transaction is still active
PASS [Worker] transaction completed
[Worker] Expecting exception from store.get(0)
PASS [Worker] Exception was thrown.
PASS [Worker] code is IDBDatabaseException.TRANSACTION_INACTIVE_ERR
PASS [Worker] ename is 'TransactionInactiveError'
[Worker] 
[Worker] trying a timeout callback:
[Worker] setTimeout(timeoutTest, 0)
[Worker] 
[Worker] timeoutTest():
[Worker] transaction = db.transaction('store')
[Worker] store = transaction.objectStore('store')
PASS [Worker] transaction started in setTimeout() callback aborted
[Worker] Expecting exception from store.get(0)
PASS [Worker] Exception was thrown.
PASS [Worker] code is IDBDatabaseException.TRANSACTION_INACTIVE_ERR
PASS [Worker] ename is 'TransactionInactiveError'
[Worker] 
[Worker] errorTest():
[Worker] self.old_onerror = self.onerror
[Worker] self.onerror = errorHandler
[Worker] 
[Worker] errorHandler():
[Worker] self.onerror = self.old_onerror
[Worker] transaction = db.transaction('store')
[Worker] store = transaction.objectStore('store')
Got expected error from worker, ignoring
event.preventDefault()
PASS [Worker] Transaction aborted
[Worker] Expecting exception from store.get(0)
PASS [Worker] Exception was thrown.
PASS [Worker] code is IDBDatabaseException.TRANSACTION_INACTIVE_ERR
PASS [Worker] ename is 'TransactionInactiveError'
PASS successfullyParsed is true

TEST COMPLETE

