1 Checks that garbage collection doesn't reclaim objects with pending activity
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "pending-activity.html"
7 indexedDB.deleteDatabase(dbname)
11 store = db.createObjectStore('store')
15 transaction = db.transaction('store')
16 transaction.oncomplete = transactionOnComplete
19 PASS Transaction 'complete' event fired.
22 transaction = db.transaction('store')
23 store = transaction.objectStore('store')
24 request = store.get(0)
25 request.onsuccess = requestOnSuccess
28 PASS Request 'success' event fired.
31 transaction = db.transaction('store')
32 store = transaction.objectStore('store')
33 request = store.openCursor()
34 request.onsuccess = cursorRequestOnFirstSuccess
35 PASS Request 'success' event fired.
36 cursor = request.result
38 request.onsuccess = cursorRequestOnSecondSuccess
41 PASS Request 'success' event fired.
43 PASS successfullyParsed is true