This tests cursors that iterate over entire indexes.
Initial upgrade needed: Old version - 0 New version - 1

Starting a new cursor: testCursorDirection(index1, 'next')
TestIndex1 count is: 12
TestIndex2 count is: 12
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 1
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 2
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 3
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 5
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 6
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 8
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 9
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 11
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 12
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index2, 'next')
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 1
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 2
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 3
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 5
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 6
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 8
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 9
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 11
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: next
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 12
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index1, 'nextunique')
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 1
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 10
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index2, 'nextunique')
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 1
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: nextunique
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 10
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index1, 'prev')
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 12
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 11
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 9
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 8
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 6
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 5
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 3
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 2
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 1
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index2, 'prev')
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 12
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 11
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 9
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 8
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 6
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 5
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 3
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 2
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prev
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 1
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index1, 'prevunique')
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex1
Cursor key is: D
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex1
Cursor key is: C
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex1
Cursor key is: B
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex1
Cursor key is: A
Cursor primary key is: 1
Cursor value is: [object Object]

Starting a new cursor: testCursorDirection(index2, 'prevunique')
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex2
Cursor key is: d
Cursor primary key is: 10
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex2
Cursor key is: c
Cursor primary key is: 7
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex2
Cursor key is: b
Cursor primary key is: 4
Cursor value is: [object Object]
Success opening or iterating cursor
Cursor direction is: prevunique
Cursor source is: TestIndex2
Cursor key is: a
Cursor primary key is: 1
Cursor value is: [object Object]
Done

