Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(864)

Side by Side Diff: LayoutTests/storage/indexeddb/transaction-ordering-expected.txt

Issue 1317593005: Indexed DB: Remove vendor prefix removal from tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 Verify Indexed DB transactions are ordered per spec 1 Verify Indexed DB transactions are ordered per spec
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 5
6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self. msIndexedDB || self.OIndexedDB;
7
8 dbname = "transaction-ordering.html" 6 dbname = "transaction-ordering.html"
9 indexedDB.deleteDatabase(dbname) 7 indexedDB.deleteDatabase(dbname)
10 indexedDB.open(dbname) 8 indexedDB.open(dbname)
11 9
12 prepareDatabase(): 10 prepareDatabase():
13 db = event.target.result 11 db = event.target.result
14 store = db.createObjectStore('store') 12 store = db.createObjectStore('store')
15 13
16 onOpen(): 14 onOpen():
17 db = event.target.result 15 db = event.target.result
18 16
19 Create in order tx1, tx2 17 Create in order tx1, tx2
20 tx1 = db.transaction('store', 'readwrite') 18 tx1 = db.transaction('store', 'readwrite')
21 tx2 = db.transaction('store', 'readwrite') 19 tx2 = db.transaction('store', 'readwrite')
22 20
23 Use in order tx2, tx1 21 Use in order tx2, tx1
24 tx2.objectStore('store').get(0) 22 tx2.objectStore('store').get(0)
25 tx1.objectStore('store').get(0) 23 tx1.objectStore('store').get(0)
26 24
27 order = [] 25 order = []
28 tx1 complete 26 tx1 complete
29 tx1 complete 27 tx1 complete
30 28
31 done(): 29 done():
32 PASS areArraysEqual(order, [ 1, 2 ]) is true 30 PASS areArraysEqual(order, [ 1, 2 ]) is true
33 PASS successfullyParsed is true 31 PASS successfullyParsed is true
34 32
35 TEST COMPLETE 33 TEST COMPLETE
36 34
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698