Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / storage / indexeddb / cursor-cast-expected.txt
blob3c5c7410166e47dffcb018d52adc67151fca502f
1 Ensure cursor wrappers are created correctly.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 dbname = "cursor-cast.html"
7 indexedDB.deleteDatabase(dbname)
8 indexedDB.open(dbname)
10 prepareDatabase():
11 db = event.target.result
12 store = db.createObjectStore('store')
13 store.put(0, 0)
15 verifyWrappers():
16 db = event.target.result
17 tx = db.transaction('store', 'readwrite')
18 request = tx.objectStore('store').openCursor()
20 onOpenCursorSuccess():
21 cursor = event.target.result
22 request = cursor.update(1)
24 onUpdateSuccess():
25 cursor = null
26 PASS request.source.toString() is "[object IDBCursorWithValue]"
27 PASS successfullyParsed is true
29 TEST COMPLETE