OLD | NEW |
1 Test IndexedDB's KeyRange. | 1 Test IndexedDB's KeyRange. |
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; | 6 indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.
msIndexedDB || self.OIndexedDB; |
7 | 7 |
8 PASS 'lower' in IDBKeyRange is false | 8 PASS 'lower' in IDBKeyRange is false |
9 PASS 'upper' in IDBKeyRange is false | 9 PASS 'upper' in IDBKeyRange is false |
10 PASS 'lowerOpen' in IDBKeyRange is false | 10 PASS 'lowerOpen' in IDBKeyRange is false |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 IDBKeyRange.bound('aaf','abf', true, true) | 207 IDBKeyRange.bound('aaf','abf', true, true) |
208 PASS keyRange.lower is 'aaf' | 208 PASS keyRange.lower is 'aaf' |
209 PASS keyRange.upper is 'abf' | 209 PASS keyRange.upper is 'abf' |
210 PASS keyRange.lowerOpen is true | 210 PASS keyRange.lowerOpen is true |
211 PASS keyRange.upperOpen is true | 211 PASS keyRange.upperOpen is true |
212 Passing an invalid key into only({}) | 212 Passing an invalid key into only({}) |
213 Expecting exception from IDBKeyRange.only({}) | 213 Expecting exception from IDBKeyRange.only({}) |
214 PASS Exception was thrown. | 214 PASS Exception was thrown. |
215 PASS code is 0 | 215 PASS code is 0 |
216 PASS ename is 'DataError' | 216 PASS ename is 'DataError' |
217 Exception message: The parameter is not a valid key. | 217 Exception message: Failed to execute 'only' on 'IDBKeyRange': The parameter is n
ot a valid key. |
218 Passing an invalid key into upperBound({}) | 218 Passing an invalid key into upperBound({}) |
219 Expecting exception from IDBKeyRange.upperBound({}) | 219 Expecting exception from IDBKeyRange.upperBound({}) |
220 PASS Exception was thrown. | 220 PASS Exception was thrown. |
221 PASS code is 0 | 221 PASS code is 0 |
222 PASS ename is 'DataError' | 222 PASS ename is 'DataError' |
223 Exception message: The parameter is not a valid key. | 223 Exception message: Failed to execute 'upperBound' on 'IDBKeyRange': The paramete
r is not a valid key. |
224 Passing an invalid key into lowerBound({}) | 224 Passing an invalid key into lowerBound({}) |
225 Expecting exception from IDBKeyRange.lowerBound({}) | 225 Expecting exception from IDBKeyRange.lowerBound({}) |
226 PASS Exception was thrown. | 226 PASS Exception was thrown. |
227 PASS code is 0 | 227 PASS code is 0 |
228 PASS ename is 'DataError' | 228 PASS ename is 'DataError' |
229 Exception message: The parameter is not a valid key. | 229 Exception message: Failed to execute 'lowerBound' on 'IDBKeyRange': The paramete
r is not a valid key. |
230 Passing an invalid key into bound(null, {}) | 230 Passing an invalid key into bound(null, {}) |
231 Expecting exception from IDBKeyRange.bound(null, {}) | 231 Expecting exception from IDBKeyRange.bound(null, {}) |
232 PASS Exception was thrown. | 232 PASS Exception was thrown. |
233 PASS code is 0 | 233 PASS code is 0 |
234 PASS ename is 'DataError' | 234 PASS ename is 'DataError' |
235 Exception message: The parameter is not a valid key. | 235 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The parameter is
not a valid key. |
236 Passing an invalid key into bound({},null) | 236 Passing an invalid key into bound({},null) |
237 Expecting exception from IDBKeyRange.bound({}, null) | 237 Expecting exception from IDBKeyRange.bound({}, null) |
238 PASS Exception was thrown. | 238 PASS Exception was thrown. |
239 PASS code is 0 | 239 PASS code is 0 |
240 PASS ename is 'DataError' | 240 PASS ename is 'DataError' |
241 Exception message: The parameter is not a valid key. | 241 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The parameter is
not a valid key. |
242 Passing an invalid key into bound({}, {}) | 242 Passing an invalid key into bound({}, {}) |
243 Expecting exception from IDBKeyRange.bound({}, {}) | 243 Expecting exception from IDBKeyRange.bound({}, {}) |
244 PASS Exception was thrown. | 244 PASS Exception was thrown. |
245 PASS code is 0 | 245 PASS code is 0 |
246 PASS ename is 'DataError' | 246 PASS ename is 'DataError' |
247 Exception message: The parameter is not a valid key. | 247 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The parameter is
not a valid key. |
248 Lower key greater than higher key, bound(4, 3) | 248 Lower key greater than higher key, bound(4, 3) |
249 Expecting exception from IDBKeyRange.bound(4, 3) | 249 Expecting exception from IDBKeyRange.bound(4, 3) |
250 PASS Exception was thrown. | 250 PASS Exception was thrown. |
251 PASS code is 0 | 251 PASS code is 0 |
252 PASS ename is 'DataError' | 252 PASS ename is 'DataError' |
253 Exception message: The lower key is greater than the upper key. | 253 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The lower key is
greater than the upper key. |
254 Equal keys, either of the bounds is open, bound(4, 4, true, false) | 254 Equal keys, either of the bounds is open, bound(4, 4, true, false) |
255 Expecting exception from IDBKeyRange.bound(4, 4, true, false) | 255 Expecting exception from IDBKeyRange.bound(4, 4, true, false) |
256 PASS Exception was thrown. | 256 PASS Exception was thrown. |
257 PASS code is 0 | 257 PASS code is 0 |
258 PASS ename is 'DataError' | 258 PASS ename is 'DataError' |
259 Exception message: The lower key and upper key are equal and one of the bounds i
s open. | 259 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The lower key and
upper key are equal and one of the bounds is open. |
260 Equal keys, either of the bounds is open, bound(4, 4, false, true) | 260 Equal keys, either of the bounds is open, bound(4, 4, false, true) |
261 Expecting exception from IDBKeyRange.bound(4, 4, false, true) | 261 Expecting exception from IDBKeyRange.bound(4, 4, false, true) |
262 PASS Exception was thrown. | 262 PASS Exception was thrown. |
263 PASS code is 0 | 263 PASS code is 0 |
264 PASS ename is 'DataError' | 264 PASS ename is 'DataError' |
265 Exception message: The lower key and upper key are equal and one of the bounds i
s open. | 265 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The lower key and
upper key are equal and one of the bounds is open. |
266 Equal keys, either of the bounds is open, bound(4, 4, true, true) | 266 Equal keys, either of the bounds is open, bound(4, 4, true, true) |
267 Expecting exception from IDBKeyRange.bound(4, 4, true, true) | 267 Expecting exception from IDBKeyRange.bound(4, 4, true, true) |
268 PASS Exception was thrown. | 268 PASS Exception was thrown. |
269 PASS code is 0 | 269 PASS code is 0 |
270 PASS ename is 'DataError' | 270 PASS ename is 'DataError' |
271 Exception message: The lower key and upper key are equal and one of the bounds i
s open. | 271 Exception message: Failed to execute 'bound' on 'IDBKeyRange': The lower key and
upper key are equal and one of the bounds is open. |
272 Equal keys, none of the bounds is open, bound(4, 4, false, false) | 272 Equal keys, none of the bounds is open, bound(4, 4, false, false) |
273 PASS successfullyParsed is true | 273 PASS successfullyParsed is true |
274 | 274 |
275 TEST COMPLETE | 275 TEST COMPLETE |
276 | 276 |
OLD | NEW |