summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/indexeddb/open-cursor-expected.txt
blob: c7d3052f0b1a9ee55d5afb6ec0e3e83f3eba5734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Test IndexedDB's openCursor.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


webkitIndexedDB.open('open-cursor')
db = event.target.result
db.setVersion('new version')
setVersionSuccess():
trans = event.target.result
PASS trans !== null is true
Deleted all object stores.
objectStore = db.createObjectStore('test')
objectStore.add('myValue', 'myKey')
Opening cursor
event.target.source.openCursor(keyRange)
Cursor opened successfully.
PASS event.target.result.direction is 0
PASS event.target.result.key is 'myKey'
PASS event.target.result.value is 'myValue'

Passing an invalid key into .continue().
PASS Caught exception: Error: TYPE_MISMATCH_ERR: DOM Exception 17

Opening an empty cursor.
objectStore.openCursor(keyRange)
Empty cursor opened successfully.
PASS successfullyParsed is true

TEST COMPLETE