test_upgradeStorageFrom1_0_idb.js (863B)
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 indexedDB::QuotaClient::UpgradeStorageFrom1_0To2_0 8 * method. 9 */ 10 11 async function testSteps() { 12 const packages = [ 13 // Storage used by FF 49-54 (storage version 1.0 with idb directory). 14 "version1_0_idb_profile", 15 "../defaultStorageDirectory_shared", 16 ]; 17 18 info("Clearing"); 19 20 let request = clear(); 21 await requestFinished(request); 22 23 info("Verifying storage"); 24 25 verifyStorage(packages, "beforeInstall"); 26 27 info("Installing packages"); 28 29 installPackages(packages); 30 31 info("Verifying storage"); 32 33 verifyStorage(packages, "afterInstall"); 34 35 info("Initializing"); 36 37 request = init(); 38 await requestFinished(request); 39 40 info("Verifying storage"); 41 42 verifyStorage(packages, "afterInit"); 43 }