blob: 6eff3daad578e9edf47033f10ff6df10cd1e635b [file] [log] [blame]
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +00001Test IndexedDB's objectStore.openCursor + the cursor it produces in depth.
2
3On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
4
5
dgrogan@chromium.org8750ff62012-03-14 21:20:56 +00006indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
dgrogan@chromium.org8750ff62012-03-14 21:20:56 +00007
dgrogan@chromium.org7c1a4712012-11-12 18:06:32 +00008indexedDB.deleteDatabase(dbname)
9indexedDB.open(dbname)
jsbell@chromium.org818b83e2012-07-19 16:37:18 +000010objectStore = db.createObjectStore('someObjectStore')
11
12Verify that specifying an invalid direction raises an exception:
13Expecting TypeError exception from objectStore.openCursor(0, 'invalid-direction')
14PASS Exception was thrown.
weinig@apple.comd7fd14c2016-12-26 01:33:33 +000015PASS objectStore.openCursor(0, 'invalid-direction') threw TypeError: Argument 2 ('direction') to IDBObjectStore.openCursor must be one of: "next", "nextunique", "prev", "prevunique"
jsbell@chromium.org818b83e2012-07-19 16:37:18 +000016
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000017objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000018objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000019objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000020objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000021objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000022objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000023objectStore.add('', testData[nextToAdd])
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000024Scheduling tests...
25Running tests...
26
27Next test: lower open bound is 0; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000028PASS event.target.result.key is testData[1]
29PASS event.target.result.key is testData[2]
30PASS event.target.result.key is testData[3]
31PASS event.target.result.key is testData[4]
32PASS event.target.result.key is testData[5]
33PASS event.target.result.key is testData[6]
34PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000035
36Next test: lower bound is 0; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000037PASS event.target.result.key is testData[0]
38PASS event.target.result.key is testData[1]
39PASS event.target.result.key is testData[2]
40PASS event.target.result.key is testData[3]
41PASS event.target.result.key is testData[4]
42PASS event.target.result.key is testData[5]
43PASS event.target.result.key is testData[6]
44PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000045
46Next test: upper open bound is 0; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000047PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000048
49Next test: upper bound is 0; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000050PASS event.target.result.key is testData[0]
51PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000052
53Next test: lower open bound is 0; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000054PASS event.target.result.key is testData[6]
55PASS event.target.result.key is testData[5]
56PASS event.target.result.key is testData[4]
57PASS event.target.result.key is testData[3]
58PASS event.target.result.key is testData[2]
59PASS event.target.result.key is testData[1]
60PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000061
62Next test: lower bound is 0; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000063PASS event.target.result.key is testData[6]
64PASS event.target.result.key is testData[5]
65PASS event.target.result.key is testData[4]
66PASS event.target.result.key is testData[3]
67PASS event.target.result.key is testData[2]
68PASS event.target.result.key is testData[1]
69PASS event.target.result.key is testData[0]
70PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000071
72Next test: upper open bound is 0; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000073PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000074
75Next test: upper bound is 0; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000076PASS event.target.result.key is testData[0]
77PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000078
79Next test: lower open bound is 0; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000080PASS event.target.result.key is testData[1]
81PASS event.target.result.key is testData[2]
82PASS event.target.result.key is testData[3]
83PASS event.target.result.key is testData[4]
84PASS event.target.result.key is testData[5]
85PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000086
87Next test: lower open bound is 0; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000088PASS event.target.result.key is testData[1]
89PASS event.target.result.key is testData[2]
90PASS event.target.result.key is testData[3]
91PASS event.target.result.key is testData[4]
92PASS event.target.result.key is testData[5]
93PASS event.target.result.key is testData[6]
94PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +000095
96Next test: lower bound is 0; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +000097PASS event.target.result.key is testData[0]
98PASS event.target.result.key is testData[1]
99PASS event.target.result.key is testData[2]
100PASS event.target.result.key is testData[3]
101PASS event.target.result.key is testData[4]
102PASS event.target.result.key is testData[5]
103PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000104
105Next test: lower bound is 0; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000106PASS event.target.result.key is testData[0]
107PASS event.target.result.key is testData[1]
108PASS event.target.result.key is testData[2]
109PASS event.target.result.key is testData[3]
110PASS event.target.result.key is testData[4]
111PASS event.target.result.key is testData[5]
112PASS event.target.result.key is testData[6]
113PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000114
115Next test: lower open bound is 0; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000116PASS event.target.result.key is testData[5]
117PASS event.target.result.key is testData[4]
118PASS event.target.result.key is testData[3]
119PASS event.target.result.key is testData[2]
120PASS event.target.result.key is testData[1]
121PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000122
123Next test: lower open bound is 0; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000124PASS event.target.result.key is testData[6]
125PASS event.target.result.key is testData[5]
126PASS event.target.result.key is testData[4]
127PASS event.target.result.key is testData[3]
128PASS event.target.result.key is testData[2]
129PASS event.target.result.key is testData[1]
130PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000131
132Next test: lower bound is 0; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000133PASS event.target.result.key is testData[5]
134PASS event.target.result.key is testData[4]
135PASS event.target.result.key is testData[3]
136PASS event.target.result.key is testData[2]
137PASS event.target.result.key is testData[1]
138PASS event.target.result.key is testData[0]
139PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000140
141Next test: lower bound is 0; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000142PASS event.target.result.key is testData[6]
143PASS event.target.result.key is testData[5]
144PASS event.target.result.key is testData[4]
145PASS event.target.result.key is testData[3]
146PASS event.target.result.key is testData[2]
147PASS event.target.result.key is testData[1]
148PASS event.target.result.key is testData[0]
149PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000150
151Next test: lower open bound is 1; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000152PASS event.target.result.key is testData[2]
153PASS event.target.result.key is testData[3]
154PASS event.target.result.key is testData[4]
155PASS event.target.result.key is testData[5]
156PASS event.target.result.key is testData[6]
157PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000158
159Next test: lower bound is 1; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000160PASS event.target.result.key is testData[1]
161PASS event.target.result.key is testData[2]
162PASS event.target.result.key is testData[3]
163PASS event.target.result.key is testData[4]
164PASS event.target.result.key is testData[5]
165PASS event.target.result.key is testData[6]
166PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000167
168Next test: upper open bound is 1; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000169PASS event.target.result.key is testData[0]
170PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000171
172Next test: upper bound is 1; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000173PASS event.target.result.key is testData[0]
174PASS event.target.result.key is testData[1]
175PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000176
177Next test: lower open bound is 1; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000178PASS event.target.result.key is testData[6]
179PASS event.target.result.key is testData[5]
180PASS event.target.result.key is testData[4]
181PASS event.target.result.key is testData[3]
182PASS event.target.result.key is testData[2]
183PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000184
185Next test: lower bound is 1; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000186PASS event.target.result.key is testData[6]
187PASS event.target.result.key is testData[5]
188PASS event.target.result.key is testData[4]
189PASS event.target.result.key is testData[3]
190PASS event.target.result.key is testData[2]
191PASS event.target.result.key is testData[1]
192PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000193
194Next test: upper open bound is 1; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000195PASS event.target.result.key is testData[0]
196PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000197
198Next test: upper bound is 1; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000199PASS event.target.result.key is testData[1]
200PASS event.target.result.key is testData[0]
201PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000202
203Next test: lower open bound is 1; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000204PASS event.target.result.key is testData[2]
205PASS event.target.result.key is testData[3]
206PASS event.target.result.key is testData[4]
207PASS event.target.result.key is testData[5]
208PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000209
210Next test: lower open bound is 1; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000211PASS event.target.result.key is testData[2]
212PASS event.target.result.key is testData[3]
213PASS event.target.result.key is testData[4]
214PASS event.target.result.key is testData[5]
215PASS event.target.result.key is testData[6]
216PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000217
218Next test: lower bound is 1; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000219PASS event.target.result.key is testData[1]
220PASS event.target.result.key is testData[2]
221PASS event.target.result.key is testData[3]
222PASS event.target.result.key is testData[4]
223PASS event.target.result.key is testData[5]
224PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000225
226Next test: lower bound is 1; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000227PASS event.target.result.key is testData[1]
228PASS event.target.result.key is testData[2]
229PASS event.target.result.key is testData[3]
230PASS event.target.result.key is testData[4]
231PASS event.target.result.key is testData[5]
232PASS event.target.result.key is testData[6]
233PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000234
235Next test: lower open bound is 1; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000236PASS event.target.result.key is testData[5]
237PASS event.target.result.key is testData[4]
238PASS event.target.result.key is testData[3]
239PASS event.target.result.key is testData[2]
240PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000241
242Next test: lower open bound is 1; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000243PASS event.target.result.key is testData[6]
244PASS event.target.result.key is testData[5]
245PASS event.target.result.key is testData[4]
246PASS event.target.result.key is testData[3]
247PASS event.target.result.key is testData[2]
248PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000249
250Next test: lower bound is 1; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000251PASS event.target.result.key is testData[5]
252PASS event.target.result.key is testData[4]
253PASS event.target.result.key is testData[3]
254PASS event.target.result.key is testData[2]
255PASS event.target.result.key is testData[1]
256PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000257
258Next test: lower bound is 1; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000259PASS event.target.result.key is testData[6]
260PASS event.target.result.key is testData[5]
261PASS event.target.result.key is testData[4]
262PASS event.target.result.key is testData[3]
263PASS event.target.result.key is testData[2]
264PASS event.target.result.key is testData[1]
265PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000266
267Next test: lower open bound is 2; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000268PASS event.target.result.key is testData[3]
269PASS event.target.result.key is testData[4]
270PASS event.target.result.key is testData[5]
271PASS event.target.result.key is testData[6]
272PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000273
274Next test: lower bound is 2; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000275PASS event.target.result.key is testData[2]
276PASS event.target.result.key is testData[3]
277PASS event.target.result.key is testData[4]
278PASS event.target.result.key is testData[5]
279PASS event.target.result.key is testData[6]
280PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000281
282Next test: upper open bound is 2; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000283PASS event.target.result.key is testData[0]
284PASS event.target.result.key is testData[1]
285PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000286
287Next test: upper bound is 2; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000288PASS event.target.result.key is testData[0]
289PASS event.target.result.key is testData[1]
290PASS event.target.result.key is testData[2]
291PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000292
293Next test: lower open bound is 2; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000294PASS event.target.result.key is testData[6]
295PASS event.target.result.key is testData[5]
296PASS event.target.result.key is testData[4]
297PASS event.target.result.key is testData[3]
298PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000299
300Next test: lower bound is 2; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000301PASS event.target.result.key is testData[6]
302PASS event.target.result.key is testData[5]
303PASS event.target.result.key is testData[4]
304PASS event.target.result.key is testData[3]
305PASS event.target.result.key is testData[2]
306PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000307
308Next test: upper open bound is 2; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000309PASS event.target.result.key is testData[1]
310PASS event.target.result.key is testData[0]
311PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000312
313Next test: upper bound is 2; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000314PASS event.target.result.key is testData[2]
315PASS event.target.result.key is testData[1]
316PASS event.target.result.key is testData[0]
317PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000318
319Next test: lower open bound is 2; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000320PASS event.target.result.key is testData[3]
321PASS event.target.result.key is testData[4]
322PASS event.target.result.key is testData[5]
323PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000324
325Next test: lower open bound is 2; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000326PASS event.target.result.key is testData[3]
327PASS event.target.result.key is testData[4]
328PASS event.target.result.key is testData[5]
329PASS event.target.result.key is testData[6]
330PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000331
332Next test: lower bound is 2; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000333PASS event.target.result.key is testData[2]
334PASS event.target.result.key is testData[3]
335PASS event.target.result.key is testData[4]
336PASS event.target.result.key is testData[5]
337PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000338
339Next test: lower bound is 2; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000340PASS event.target.result.key is testData[2]
341PASS event.target.result.key is testData[3]
342PASS event.target.result.key is testData[4]
343PASS event.target.result.key is testData[5]
344PASS event.target.result.key is testData[6]
345PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000346
347Next test: lower open bound is 2; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000348PASS event.target.result.key is testData[5]
349PASS event.target.result.key is testData[4]
350PASS event.target.result.key is testData[3]
351PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000352
353Next test: lower open bound is 2; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000354PASS event.target.result.key is testData[6]
355PASS event.target.result.key is testData[5]
356PASS event.target.result.key is testData[4]
357PASS event.target.result.key is testData[3]
358PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000359
360Next test: lower bound is 2; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000361PASS event.target.result.key is testData[5]
362PASS event.target.result.key is testData[4]
363PASS event.target.result.key is testData[3]
364PASS event.target.result.key is testData[2]
365PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000366
367Next test: lower bound is 2; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000368PASS event.target.result.key is testData[6]
369PASS event.target.result.key is testData[5]
370PASS event.target.result.key is testData[4]
371PASS event.target.result.key is testData[3]
372PASS event.target.result.key is testData[2]
373PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000374
375Next test: lower open bound is 3; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000376PASS event.target.result.key is testData[4]
377PASS event.target.result.key is testData[5]
378PASS event.target.result.key is testData[6]
379PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000380
381Next test: lower bound is 3; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000382PASS event.target.result.key is testData[3]
383PASS event.target.result.key is testData[4]
384PASS event.target.result.key is testData[5]
385PASS event.target.result.key is testData[6]
386PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000387
388Next test: upper open bound is 3; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000389PASS event.target.result.key is testData[0]
390PASS event.target.result.key is testData[1]
391PASS event.target.result.key is testData[2]
392PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000393
394Next test: upper bound is 3; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000395PASS event.target.result.key is testData[0]
396PASS event.target.result.key is testData[1]
397PASS event.target.result.key is testData[2]
398PASS event.target.result.key is testData[3]
399PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000400
401Next test: lower open bound is 3; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000402PASS event.target.result.key is testData[6]
403PASS event.target.result.key is testData[5]
404PASS event.target.result.key is testData[4]
405PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000406
407Next test: lower bound is 3; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000408PASS event.target.result.key is testData[6]
409PASS event.target.result.key is testData[5]
410PASS event.target.result.key is testData[4]
411PASS event.target.result.key is testData[3]
412PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000413
414Next test: upper open bound is 3; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000415PASS event.target.result.key is testData[2]
416PASS event.target.result.key is testData[1]
417PASS event.target.result.key is testData[0]
418PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000419
420Next test: upper bound is 3; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000421PASS event.target.result.key is testData[3]
422PASS event.target.result.key is testData[2]
423PASS event.target.result.key is testData[1]
424PASS event.target.result.key is testData[0]
425PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000426
427Next test: lower open bound is 3; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000428PASS event.target.result.key is testData[4]
429PASS event.target.result.key is testData[5]
430PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000431
432Next test: lower open bound is 3; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000433PASS event.target.result.key is testData[4]
434PASS event.target.result.key is testData[5]
435PASS event.target.result.key is testData[6]
436PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000437
438Next test: lower bound is 3; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000439PASS event.target.result.key is testData[3]
440PASS event.target.result.key is testData[4]
441PASS event.target.result.key is testData[5]
442PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000443
444Next test: lower bound is 3; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000445PASS event.target.result.key is testData[3]
446PASS event.target.result.key is testData[4]
447PASS event.target.result.key is testData[5]
448PASS event.target.result.key is testData[6]
449PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000450
451Next test: lower open bound is 3; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000452PASS event.target.result.key is testData[5]
453PASS event.target.result.key is testData[4]
454PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000455
456Next test: lower open bound is 3; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000457PASS event.target.result.key is testData[6]
458PASS event.target.result.key is testData[5]
459PASS event.target.result.key is testData[4]
460PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000461
462Next test: lower bound is 3; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000463PASS event.target.result.key is testData[5]
464PASS event.target.result.key is testData[4]
465PASS event.target.result.key is testData[3]
466PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000467
468Next test: lower bound is 3; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000469PASS event.target.result.key is testData[6]
470PASS event.target.result.key is testData[5]
471PASS event.target.result.key is testData[4]
472PASS event.target.result.key is testData[3]
473PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000474
475Next test: lower open bound is 4; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000476PASS event.target.result.key is testData[5]
477PASS event.target.result.key is testData[6]
478PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000479
480Next test: lower bound is 4; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000481PASS event.target.result.key is testData[4]
482PASS event.target.result.key is testData[5]
483PASS event.target.result.key is testData[6]
484PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000485
486Next test: upper open bound is 4; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000487PASS event.target.result.key is testData[0]
488PASS event.target.result.key is testData[1]
489PASS event.target.result.key is testData[2]
490PASS event.target.result.key is testData[3]
491PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000492
493Next test: upper bound is 4; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000494PASS event.target.result.key is testData[0]
495PASS event.target.result.key is testData[1]
496PASS event.target.result.key is testData[2]
497PASS event.target.result.key is testData[3]
498PASS event.target.result.key is testData[4]
499PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000500
501Next test: lower open bound is 4; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000502PASS event.target.result.key is testData[6]
503PASS event.target.result.key is testData[5]
504PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000505
506Next test: lower bound is 4; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000507PASS event.target.result.key is testData[6]
508PASS event.target.result.key is testData[5]
509PASS event.target.result.key is testData[4]
510PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000511
512Next test: upper open bound is 4; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000513PASS event.target.result.key is testData[3]
514PASS event.target.result.key is testData[2]
515PASS event.target.result.key is testData[1]
516PASS event.target.result.key is testData[0]
517PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000518
519Next test: upper bound is 4; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000520PASS event.target.result.key is testData[4]
521PASS event.target.result.key is testData[3]
522PASS event.target.result.key is testData[2]
523PASS event.target.result.key is testData[1]
524PASS event.target.result.key is testData[0]
525PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000526
527Next test: lower open bound is 4; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000528PASS event.target.result.key is testData[5]
529PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000530
531Next test: lower open bound is 4; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000532PASS event.target.result.key is testData[5]
533PASS event.target.result.key is testData[6]
534PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000535
536Next test: lower bound is 4; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000537PASS event.target.result.key is testData[4]
538PASS event.target.result.key is testData[5]
539PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000540
541Next test: lower bound is 4; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000542PASS event.target.result.key is testData[4]
543PASS event.target.result.key is testData[5]
544PASS event.target.result.key is testData[6]
545PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000546
547Next test: lower open bound is 4; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000548PASS event.target.result.key is testData[5]
549PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000550
551Next test: lower open bound is 4; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000552PASS event.target.result.key is testData[6]
553PASS event.target.result.key is testData[5]
554PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000555
556Next test: lower bound is 4; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000557PASS event.target.result.key is testData[5]
558PASS event.target.result.key is testData[4]
559PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000560
561Next test: lower bound is 4; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000562PASS event.target.result.key is testData[6]
563PASS event.target.result.key is testData[5]
564PASS event.target.result.key is testData[4]
565PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000566
567Next test: lower open bound is 5; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000568PASS event.target.result.key is testData[6]
569PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000570
571Next test: lower bound is 5; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000572PASS event.target.result.key is testData[5]
573PASS event.target.result.key is testData[6]
574PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000575
576Next test: upper open bound is 5; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000577PASS event.target.result.key is testData[0]
578PASS event.target.result.key is testData[1]
579PASS event.target.result.key is testData[2]
580PASS event.target.result.key is testData[3]
581PASS event.target.result.key is testData[4]
582PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000583
584Next test: upper bound is 5; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000585PASS event.target.result.key is testData[0]
586PASS event.target.result.key is testData[1]
587PASS event.target.result.key is testData[2]
588PASS event.target.result.key is testData[3]
589PASS event.target.result.key is testData[4]
590PASS event.target.result.key is testData[5]
591PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000592
593Next test: lower open bound is 5; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000594PASS event.target.result.key is testData[6]
595PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000596
597Next test: lower bound is 5; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000598PASS event.target.result.key is testData[6]
599PASS event.target.result.key is testData[5]
600PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000601
602Next test: upper open bound is 5; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000603PASS event.target.result.key is testData[4]
604PASS event.target.result.key is testData[3]
605PASS event.target.result.key is testData[2]
606PASS event.target.result.key is testData[1]
607PASS event.target.result.key is testData[0]
608PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000609
610Next test: upper bound is 5; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000611PASS event.target.result.key is testData[5]
612PASS event.target.result.key is testData[4]
613PASS event.target.result.key is testData[3]
614PASS event.target.result.key is testData[2]
615PASS event.target.result.key is testData[1]
616PASS event.target.result.key is testData[0]
617PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000618
619Next test: lower open bound is 5; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000620PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000621
622Next test: lower open bound is 5; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000623PASS event.target.result.key is testData[6]
624PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000625
626Next test: lower bound is 5; upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000627PASS event.target.result.key is testData[5]
628PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000629
630Next test: lower bound is 5; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000631PASS event.target.result.key is testData[5]
632PASS event.target.result.key is testData[6]
633PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000634
635Next test: lower open bound is 5; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000636PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000637
638Next test: lower open bound is 5; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000639PASS event.target.result.key is testData[6]
640PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000641
642Next test: lower bound is 5; upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000643PASS event.target.result.key is testData[5]
644PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000645
646Next test: lower bound is 5; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000647PASS event.target.result.key is testData[6]
648PASS event.target.result.key is testData[5]
649PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000650
651Next test: lower open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000652PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000653
654Next test: lower bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000655PASS event.target.result.key is testData[6]
656PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000657
658Next test: upper open bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000659PASS event.target.result.key is testData[0]
660PASS event.target.result.key is testData[1]
661PASS event.target.result.key is testData[2]
662PASS event.target.result.key is testData[3]
663PASS event.target.result.key is testData[4]
664PASS event.target.result.key is testData[5]
665PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000666
667Next test: upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000668PASS event.target.result.key is testData[0]
669PASS event.target.result.key is testData[1]
670PASS event.target.result.key is testData[2]
671PASS event.target.result.key is testData[3]
672PASS event.target.result.key is testData[4]
673PASS event.target.result.key is testData[5]
674PASS event.target.result.key is testData[6]
675PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000676
677Next test: lower open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000678PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000679
680Next test: lower bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000681PASS event.target.result.key is testData[6]
682PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000683
684Next test: upper open bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000685PASS event.target.result.key is testData[5]
686PASS event.target.result.key is testData[4]
687PASS event.target.result.key is testData[3]
688PASS event.target.result.key is testData[2]
689PASS event.target.result.key is testData[1]
690PASS event.target.result.key is testData[0]
691PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000692
693Next test: upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000694PASS event.target.result.key is testData[6]
695PASS event.target.result.key is testData[5]
696PASS event.target.result.key is testData[4]
697PASS event.target.result.key is testData[3]
698PASS event.target.result.key is testData[2]
699PASS event.target.result.key is testData[1]
700PASS event.target.result.key is testData[0]
701PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000702
703Next test: lower open bound is 6; upper open bound is 6; sorted ascending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000704Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000705
706Next test: lower open bound is 6; upper bound is 6; sorted ascending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000707Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000708
709Next test: lower bound is 6; upper open bound is 6; sorted ascending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000710Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000711
712Next test: lower bound is 6; upper bound is 6; sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000713PASS event.target.result.key is testData[6]
714PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000715
716Next test: lower open bound is 6; upper open bound is 6; sorted descending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000717Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000718
719Next test: lower open bound is 6; upper bound is 6; sorted descending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000720Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000721
722Next test: lower bound is 6; upper open bound is 6; sorted descending.
hans@chromium.org2b5deb742011-12-28 12:58:43 +0000723Skipping illegal key range.
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000724
725Next test: lower bound is 6; upper bound is 6; sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000726PASS event.target.result.key is testData[6]
727PASS event.target.result is null
jorlow@chromium.org2a9553e2010-10-26 17:03:59 +0000728
729Next test: null key path sorted ascending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000730PASS event.target.result.key is testData[0]
731PASS event.target.result.key is testData[1]
732PASS event.target.result.key is testData[2]
733PASS event.target.result.key is testData[3]
734PASS event.target.result.key is testData[4]
735PASS event.target.result.key is testData[5]
736PASS event.target.result.key is testData[6]
737PASS event.target.result is null
jorlow@chromium.org2a9553e2010-10-26 17:03:59 +0000738
739Next test: null key path sorted descending.
jorlow@chromium.orgaddb46f2011-02-15 01:18:57 +0000740PASS event.target.result.key is testData[6]
741PASS event.target.result.key is testData[5]
742PASS event.target.result.key is testData[4]
743PASS event.target.result.key is testData[3]
744PASS event.target.result.key is testData[2]
745PASS event.target.result.key is testData[1]
746PASS event.target.result.key is testData[0]
747PASS event.target.result is null
jorlow@chromium.orgc352e1c2010-08-31 10:46:09 +0000748PASS successfullyParsed is true
749
750TEST COMPLETE
751