Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / pending-activity-expected.txt
blobd1332e4465d8b696ecf4017ceea704091785d13c
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)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 store = db.createObjectStore('store')
12 store.put(0, 0)
14 testTransaction():
15 transaction = db.transaction('store')
16 transaction.oncomplete = transactionOnComplete
17 transaction = null
18 self.gc()
19 PASS Transaction 'complete' event fired.
21 testRequest():
22 transaction = db.transaction('store')
23 store = transaction.objectStore('store')
24 request = store.get(0)
25 request.onsuccess = requestOnSuccess
26 request = null
27 self.gc()
28 PASS Request 'success' event fired.
30 testCursorRequest():
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
37 cursor.continue()
38 request.onsuccess = cursorRequestOnSecondSuccess
39 request = null
40 self.gc()
41 PASS Request 'success' event fired.
43 PASS successfullyParsed is true
45 TEST COMPLETE