2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
7 * This test is mainly to verify that initializePersistentClient() does call
8 * QuotaManager::EnsurePersistentClientIsInitialized() which ensures client
12 async
function testSteps() {
13 const clientMetadata
= {
14 principal
: getPrincipal("https://foo.example.com"),
16 file
: getRelativeFile("storage/permanent/https+++foo.example.com/sdb"),
21 let request
= clear();
22 await
requestFinished(request
);
27 await
requestFinished(request
);
29 info("Initializing persistent origin");
31 request
= initPersistentOrigin(clientMetadata
.principal
);
32 await
requestFinished(request
);
34 ok(!clientMetadata
.file
.exists(), "Client directory does not exist");
36 info("Initializing persistent client");
38 request
= initPersistentClient(
39 clientMetadata
.principal
,
42 await
requestFinished(request
);
44 ok(clientMetadata
.file
.exists(), "Client directory does exist");