Bug 1945643 - Update to mozilla-nimbus-schemas 2025.1.1 r=chumphreys
[gecko.git] / dom / quota / test / xpcshell / test_clearStoragesForPrivateBrowsing.js
blob6a94e5c98edffd40146813758d6fa387eb1ea3db
1 /**
2 * Any copyright is dedicated to the Public Domain.
3 * http://creativecommons.org/publicdomain/zero/1.0/
4 */
6 /**
7 * This test is mainly to verify clearing of storages for private browsing.
8 */
10 async function testSteps() {
11 const packages = [
12 "clearStoragesForPrivateBrowsing_profile",
13 "defaultStorageDirectory_shared",
16 info("Clearing");
18 let request = clear();
19 await requestFinished(request);
21 info("Verifying storage");
23 verifyStorage(packages, "beforeInstall");
25 info("Installing package");
27 installPackages(packages);
29 info("Verifying storage");
31 verifyStorage(packages, "afterInstall");
33 info("Clearing private browsing");
35 request = clearPrivateBrowsing();
36 await requestFinished(request);
38 info("Verifying storage");
40 verifyStorage(packages, "afterClearPrivateBrowsing");