blob: 3de8ba17927f21b45e2998e8c6f94f16f7fd0417 [file] [log] [blame]
Test IDBObjectStore.getAll()
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
indexedDB = self.indexedDB || self.webkitIndexedDB || self.mozIndexedDB || self.msIndexedDB || self.OIndexedDB;
indexedDB.deleteDatabase(dbname)
indexedDB.open(dbname)
Initial upgrade needed: Old version - 0 New version - 1
getAll() result is:
[ 'false' '-10' '10' 'hello' 'hellothere' ]
getAll(undefined, 4) result is:
[ 'false' '-10' '10' 'hello' ]
getAll(6) result is:
[ ]
getAll(3) result is:
[ '10' ]
getAll(IDBKeyRange.only(5)) result is:
[ 'hellothere' ]
getAll(IDBKeyRange.lowerBound(2)) result is:
[ '-10' '10' 'hello' 'hellothere' ]
getAll(IDBKeyRange.upperBound(2)) result is:
[ 'false' '-10' ]
getAll(IDBKeyRange.bound(2, 4)) result is:
[ '-10' '10' 'hello' ]
PASS successfullyParsed is true
TEST COMPLETE