blob: 2e570e8d486ef032b151af1fee0f75ae5f8bece1 [file] [log] [blame]
This tests basic IDBCursor functionality
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 opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor primary key is: 0
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: next
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor primary key is: 0
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: next
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: next
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: nextunique
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor primary key is: 0
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: nextunique
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: 0
Cursor primary key is: 0
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: nextunique
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: nextunique
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: prev
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: foo
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: prev
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: foo
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: prev
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: prev
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: prevunique
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: foo
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: prevunique
Cursor source is: [object IDBObjectStore] (TestObjectStore)
Cursor key is: foo
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursorWithValue]
Cursor direction is: prevunique
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Success opening cursor
Cursor is: [object IDBCursor]
Cursor direction is: prevunique
Cursor source is: [object IDBIndex] (TestIndex1)
Cursor key is: Hello
Cursor primary key is: foo
Initial upgrade versionchange transaction complete
PASS successfullyParsed is true
TEST COMPLETE