Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / request-leak-expected.txt
blob34c655e3d616220f65602fb81d1b69fcd4716b51
1 Verify that that requests weakly hold script value properties
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "request-leak.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.put({value: 'value'}, 'key')
15 onOpen():
16 db = event.target.result
17 tx = db.transaction('store')
18 store = tx.objectStore('store')
19 request = store.get('key')
21 onTransactionComplete():
22 db.close()
23 PASS typeof request.result is "object"
24 request.result.x = 123
25 PASS request.result.x is 123
26 request.result.leak = request
27 observer = internals.observeGC(request)
28 request = null
29 gc()
30 PASS observer.wasCollected is true
31 PASS successfullyParsed is true
33 TEST COMPLETE