<!DOCTYPEHTML>
<html>
<head>
<meta charset="utf-8">
<title>Storage inspector test for correct keys in the sidebar</title>
</head>
<body>
<script type="application/javascript"> "use strict";
// Some local storage items ...
localStorage.setItem("", "1");
localStorage.setItem("键", "2");
// ... and finally some session storage items too
sessionStorage.setItem("Key with spaces", "3");
sessionStorage.setItem("Key#with~special$characters", "4");
// long string
const longKey = "a".repeat(1000);
sessionStorage.setItem(longKey, "5");
console.log("Added local and session storage items and indexedDB");
};
function deleteDB(dbName) {
return new Promise(resolve => {
dump("removing database " + dbName + " from " + document.location + "\n");
indexedDB.deleteDatabase(dbName).onsuccess = resolve;
});
}
window.setup = async function () {
await idbGenerator();
};
window.clear = async function () {
localStorage.clear();
sessionStorage.clear();
await deleteDB("idb");
dump("Removed data from " + document.location + "\n");
};
</script>
</body>
</html>
Messung V0.5
¤ 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.0.2Bemerkung:
¤
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.