event = await expectingSuccess(request);
db = event.target.result;
let tx = db.transaction("store", "readonly");
event = await requestSucceeded(tx.objectStore("store").getAllRecords());
let storeRecords = event.target.result;
event = await requestSucceeded(
tx.objectStore("store").index("idx").getAllRecords()
);
let indexRecords = event.target.result;
is(storeRecords.length, 2, "Got 2 store records");
is(indexRecords.length, 2, "Got 2 index records");
// Object store records: key and primaryKey share the same underlying raw key // in the C++ implementation (mPrimaryKeyAndKeyEqual = true). Test that both // attributes return correct values regardless of access order and on repeated // access.
// Index records: key (index key) and primaryKey (object store key) use // distinct underlying raw keys in the C++ implementation // (mPrimaryKeyAndKeyEqual = false). Test both access orders.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.