Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- Manifest: dom/quota/test/xpcshell/xpcshell.toml
/**
* Any copyright is dedicated to the Public Domain.
*/
const { PrincipalUtils } = ChromeUtils.importESModule(
);
const { SimpleDBUtils } = ChromeUtils.importESModule(
);
const { TestUtils } = ChromeUtils.importESModule(
);
/* exported testSteps */
async function testSteps() {
const name = "test_clientDirectoryOpeningStarted.js";
info("Starting database opening");
const openPromise = (async function () {
const connection = SimpleDBUtils.createConnection(principal);
const request = connection.open(name);
const promise = SimpleDBUtils.requestFinished(request);
return promise;
})();
info("Waiting for client directory opening to start");
await TestUtils.topicObserved("QuotaManager::ClientDirectoryOpeningStarted");
info("Waiting for database to finish opening");
await openPromise;
}