/**
* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/
*/
const { PrincipalUtils } = ChromeUtils.importESModule(
"resource://testing-common/dom/quota/test/modules/PrincipalUtils.sys.mjs"
);
const { IndexedDBUtils } = ChromeUtils.importESModule(
"resource://testing-common/dom/indexedDB/test/modules/IndexedDBUtils.sys.mjs"
);
const { TestUtils } = ChromeUtils.importESModule(
"resource://testing-common/TestUtils.sys.mjs"
);
/* exported testSteps */
async
function testSteps() {
const principal = PrincipalUtils.createPrincipal(
"https://example.com ");
const name =
"test_databaseWorkStarted.js" ;
info(
"Starting database opening" );
const openPromise = (async
function () {
const request = indexedDB.openForPrincipal(principal, name);
const promise = IndexedDBUtils.requestFinished(request);
return promise;
})();
info(
"Waiting for database work to start" );
await TestUtils.topicObserved(
"IndexedDB::DatabaseWorkStarted" );
info(
"Waiting for database to finish opening" );
await openPromise;
}
Messung V0.5 in Prozent C=84 H=100 G=92
¤ Dauer der Verarbeitung: 0.21 Sekunden
(vorverarbeitet am 2026-04-29)
¤
*© Formatika GbR, Deutschland