test_clearStoragesForPrivateBrowsing.js (828B)
1 /** 2 * Any copyright is dedicated to the Public Domain. 3 * http://creativecommons.org/publicdomain/zero/1.0/ 4 */ 5 6 /** 7 * This test is mainly to verify clearing of storages for private browsing. 8 */ 9 10 async function testSteps() { 11 const packages = [ 12 "clearStoragesForPrivateBrowsing_profile", 13 "defaultStorageDirectory_shared", 14 ]; 15 16 info("Clearing"); 17 18 let request = clear(); 19 await requestFinished(request); 20 21 info("Verifying storage"); 22 23 verifyStorage(packages, "beforeInstall"); 24 25 info("Installing package"); 26 27 installPackages(packages); 28 29 info("Verifying storage"); 30 31 verifyStorage(packages, "afterInstall"); 32 33 info("Clearing private browsing"); 34 35 request = clearPrivateBrowsing(); 36 await requestFinished(request); 37 38 info("Verifying storage"); 39 40 verifyStorage(packages, "afterClearPrivateBrowsing"); 41 }