1 [Worker] 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 Starting worker: resources/pending-activity.js
7 [Worker] dbname = "pending-activity.js"
8 [Worker] indexedDB.deleteDatabase(dbname)
9 [Worker] indexedDB.open(dbname)
11 [Worker] prepareDatabase():
12 [Worker] store = db.createObjectStore('store')
13 [Worker] store.put(0, 0)
15 [Worker] testTransaction():
16 [Worker] transaction = db.transaction('store')
17 [Worker] transaction.oncomplete = transactionOnComplete
18 [Worker] transaction = null
20 PASS [Worker] Transaction 'complete' event fired.
22 [Worker] testRequest():
23 [Worker] transaction = db.transaction('store')
24 [Worker] store = transaction.objectStore('store')
25 [Worker] request = store.get(0)
26 [Worker] request.onsuccess = requestOnSuccess
27 [Worker] request = null
29 PASS [Worker] Request 'success' event fired.
31 [Worker] testCursorRequest():
32 [Worker] transaction = db.transaction('store')
33 [Worker] store = transaction.objectStore('store')
34 [Worker] request = store.openCursor()
35 [Worker] request.onsuccess = cursorRequestOnFirstSuccess
36 PASS [Worker] Request 'success' event fired.
37 [Worker] cursor = request.result
38 [Worker] cursor.continue()
39 [Worker] request.onsuccess = cursorRequestOnSecondSuccess
40 [Worker] request = null
42 PASS [Worker] Request 'success' event fired.
44 PASS successfullyParsed is true