blob: 3ebabc17a8156d56df87ced56b70af81fc1d9a9c [file] [log] [blame]
This tests iterating a "next" cursor in a read-write transaction while changing records.
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
Cursor open at key 0
Record 0 deleted, even though that's where the cursor currently points.
Cursor iterated to key 1
Cursor iterated to key 2 with value 'Scary new actual record!'
Initial upgrade versionchange transaction complete
PASS successfullyParsed is true
TEST COMPLETE