// create index to be deleted later in v2.
objectStore.createIndex(indexName_ToBeDeleted, "foo");
ok(objectStore.index(indexName_ToBeDeleted), "Index created.");
db = event.target.result;
txn = event.target.transaction;
objectStore = txn.objectStore(storeName);
let index = objectStore.index(indexName_ToBeDeleted);
ok(index, "index is valid.");
objectStore.deleteIndex(indexName_ToBeDeleted);
// Aborting the transaction.
request.onerror = expectedErrorHandler("AbortError");
txn.abort(); try {
index.get("foo");
ok( false, "TransactionInactiveError shall be thrown right after a deletion of an index is aborted."
);
} catch (e) {
ok(e instanceof DOMException, "got a database exception");
is(
e.name, "TransactionInactiveError", "TransactionInactiveError shall be thrown right after a deletion of an index is aborted."
);
}
yield undefined;
try {
index.get("foo");
ok( false, "TransactionInactiveError shall be thrown after the transaction is inactive."
);
} catch (e) {
ok(e instanceof DOMException, "got a database exception");
is(
e.name, "TransactionInactiveError", "TransactionInactiveError shall be thrown after the transaction is inactive."
);
}
finishTest();
}
Messung V0.5 in Prozent
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.3Angebot
¤
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.