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