rt_equals(cursor.primaryKey, 5);
          break;

        default:
          assert_unreached("Unexpected count: " + count);
      }

      count++;
      cursor.continue([]); // Arrays are always bigger than strings

    });
    rq.onerror = t.unreached_func("unexpected error2")
  },
  document.title + " - skip far forward"
);


indexeddb_test(
  upgrade_func,
  function(t, db) {
    var count = 0;
    var rq = db.transaction("test").objectStore("test").index("index")
               .openCursor(IDBKeyRang