Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / metadata-race-expected.txt
blobd0812ca49f5a40ae76ba5056ff23e294d3dc343a
1 Ensure IndexedDB transactions created before open onsuccess have correct metadata
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "metadata-race.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.createIndex('index', 'keyPath')
14 transaction = event.target.transaction
15 PASS index = transaction.objectStore('store').index('index') did not throw exception.
17 onTransactionComplete():
18 In multiprocess mode, 'complete' event may be dispatched before
19 the 'success' arrives with updated metadata. Ensure the new metadata
20 is still used for transactions.
21 store = db.transaction('store').objectStore('store')
22 PASS index = store.index('index') did not throw exception.
24 onOpenSuccess():
25 db = event.target.result
26 store = db.transaction('store').objectStore('store')
27 PASS index = store.index('index') did not throw exception.
28 PASS successfullyParsed is true
30 TEST COMPLETE