blob: c294f0dbe5f8d5b9d156f9c0512e920aa218b3a3 [file] [log] [blame]
Test IDBObjectStore.getAllKeys()
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
getAllKeys() result is:
[ '1' '2' '3' '4' '5' ]
getAllKeys(undefined, 4) result is:
[ '1' '2' '3' '4' ]
getAllKeys(6) result is:
[ ]
getAllKeys(3) result is:
[ '3' ]
getAllKeys(IDBKeyRange.only(5)) result is:
[ '5' ]
getAllKeys(IDBKeyRange.lowerBound(2)) result is:
[ '2' '3' '4' '5' ]
getAllKeys(IDBKeyRange.upperBound(2)) result is:
[ '1' '2' ]
getAllKeys(IDBKeyRange.bound(2, 4)) result is:
[ '2' '3' '4' ]
PASS successfullyParsed is true
TEST COMPLETE