Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/localstorage/test/unit/xpcshell.toml
/**
* Any copyright is dedicated to the Public Domain.
*/
const { PrincipalUtils } = ChromeUtils.importESModule(
);
const { TestUtils } = ChromeUtils.importESModule(
);
add_task(async function testSteps() {
info("Starting database opening");
const openPromise = Services.domStorageManager.preload(principal);
info("Waiting for database work to start");
await TestUtils.topicObserved("LocalStorage::DatabaseWorkStarted");
info("Waiting for database to finish opening");
await openPromise;
});