blob: 67d72d2093e1bc46de08727eee285be0f81da711 [file] [log] [blame]
This test various uses of advance() and continue() on a "next" cursor.
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
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor value is: Record 0
Cursor primary key is: 0
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 2
Cursor value is: Record 2
Cursor primary key is: 2
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 4
Cursor value is: Record 4
Cursor primary key is: 4
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 6
Cursor value is: Record 6
Cursor primary key is: 6
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 8
Cursor value is: Record 8
Cursor primary key is: 8
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: foo
Cursor value is: [object Object]
Cursor primary key is: foo
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor value is: Record 0
Cursor primary key is: 0
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 3
Cursor value is: Record 3
Cursor primary key is: 3
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 6
Cursor value is: Record 6
Cursor primary key is: 6
Success iterating cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 9
Cursor value is: Record 9
Cursor primary key is: 9
Initial upgrade versionchange transaction complete
PASS successfullyParsed is true
TEST COMPLETE