Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / database-wrapper-expected.txt
blobb5c80ae072500708aba1ce8c82045a8c6ad0d18a
1 Ensure IDBDatabase wrapper isn't prematurely collected.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "database-wrapper.html"
7 indexedDB.deleteDatabase(dbname)
9 openDB():
10 indexedDB.open(dbname, 1)
12 onUpgradeNeeded():
13 db = event.target.result
14 db.createObjectStore('store').createIndex('index', 'keyPath')
15 db = null
17 openSuccess():
18 sawVersionChangeEvent = false
20 collectGarbage():
21 self.gc()
23 openAgain():
24 indexedDB.open(dbname, 2)
26 onVersionChange():
27 event.target.close()
28 sawVersionChangeEvent = true
30 openAgainSuccess():
31 PASS sawVersionChangeEvent is true
32 PASS successfullyParsed is true
34 TEST COMPLETE