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

Starting a new cursor: testCursorDirection('next', IDBKeyRange.bound('B', 'D', true, true))
TestIndex1 count is: 12
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]

Starting a new cursor: testCursorDirection('nextunique', IDBKeyRange.bound('B', 'D', true, true))
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]

Starting a new cursor: testCursorDirection('prev', IDBKeyRange.bound('B', 'D', true, true))
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]

Starting a new cursor: testCursorDirection('prevunique', IDBKeyRange.bound('B', 'D', true, true))
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]

Starting a new cursor: testCursorDirection('next', IDBKeyRange.bound('B', 'C'))
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]

Starting a new cursor: testCursorDirection('nextunique', IDBKeyRange.bound('B', 'C'))
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]

Starting a new cursor: testCursorDirection('prev', IDBKeyRange.bound('B', 'C'))
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]

Starting a new cursor: testCursorDirection('prevunique', IDBKeyRange.bound('B', 'C'))
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]

Starting a new cursor: testCursorDirection('next', IDBKeyRange.upperBound('B'))
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]

Starting a new cursor: testCursorDirection('nextunique', IDBKeyRange.upperBound('B'))
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]

Starting a new cursor: testCursorDirection('prev', IDBKeyRange.upperBound('B'))
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('prevunique', IDBKeyRange.upperBound('B'))
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('next', IDBKeyRange.lowerBound('C'))
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('nextunique', IDBKeyRange.lowerBound('C'))
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('prev', IDBKeyRange.lowerBound('C'))
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]

Starting a new cursor: testCursorDirection('prevunique', IDBKeyRange.lowerBound('C'))
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]

Starting a new cursor: testCursorDirection('next', IDBKeyRange.only('B'))
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]

Starting a new cursor: testCursorDirection('nextunique', IDBKeyRange.only('B'))
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]

Starting a new cursor: testCursorDirection('prev', IDBKeyRange.only('B'))
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]

Starting a new cursor: testCursorDirection('prevunique', IDBKeyRange.only('B'))
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]
Done

