 key: 5 },
              { value: "pancake", key: 3 },
              { value: "pie",     key: 1 },
              { value: "pie",     key: 4 },
              { value: "taco",    key: 2 } ];

function upgrade_func(t, db, tx) {
  var db, open;

  var os, i;
  os = db.createObjectStore("test");
  os.createIndex("index", "");

  for (i = 0; i < store.length; i++)
    os.add(store[i].value, store[i].key);
}

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