Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / transaction-ordering-expected.txt
blob4decf56d2ed86a34068896a29f1c8455348a651d
1 Verify Indexed DB transactions are ordered per spec
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "transaction-ordering.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
14 onOpen():
15 db = event.target.result
17 Create in order tx1, tx2
18 tx1 = db.transaction('store', 'readwrite')
19 tx2 = db.transaction('store', 'readwrite')
21 Use in order tx2, tx1
22 tx2.objectStore('store').get(0)
23 tx1.objectStore('store').get(0)
25 order = []
26 tx1 complete
27 tx1 complete
29 done():
30 PASS areArraysEqual(order, [ 1, 2 ]) is true
31 PASS successfullyParsed is true
33 TEST COMPLETE