Bug 1608025 - Clean up the test for the upgrade from storage version 0.0; r=asuth

Differential Revision: https://phabricator.services.mozilla.com/D59703

--HG--
rename : dom/quota/test/unit/upgrades/test_originAttributesUpgrade.js => dom/quota/test/unit/upgrades/test_upgradeStorageFrom0_0.js
rename : dom/quota/test/unit/upgrades/originAttributesUpgrade_profile.zip => dom/quota/test/unit/upgrades/version0_0_profile.zip
extra : moz-landing-system : lando
This commit is contained in:
Jan Varga 2020-01-14 02:53:39 +00:00
Родитель 37fc02fdf4
Коммит 48cc81bb25
3 изменённых файлов: 9 добавлений и 5 удалений

Просмотреть файл

@ -3,6 +3,10 @@
* http://creativecommons.org/publicdomain/zero/1.0/
*/
/**
* This test is mainly to verify UpgradeStorageFrom0_0To1_0 method.
*/
var testGenerator = testSteps();
function* testSteps() {
@ -29,14 +33,14 @@ function* testSteps() {
const metadataFileName = ".metadata";
const metadata2FileName = ".metadata-v2";
// Test upgrade from FF 48 (no storage.sqlite and no .metadata-v2 files).
info("Clearing");
clear(continueToNextStepSync);
yield undefined;
installPackage("originAttributesUpgrade_profile");
// Storage used by FF 36-48 (storage/default/ directory, but no
// storage.sqlite and no .metadata-v2 files).
installPackage("version0_0_profile");
info("Checking storage file");

Просмотреть файл

@ -13,11 +13,11 @@ support-files =
localStorageArchiveDowngrade_profile.zip
morgueCleanup_profile.zip
obsoleteOriginAttributes_profile.zip
originAttributesUpgrade_profile.zip
persistentAndDefaultStorageDirectory_profile.zip
persistentStorageDirectory_flatOriginDirectories_profile.zip
persistentStorageDirectory_originDirectories_profile.zip
persistentStorageDirectory_profile.zip
version0_0_profile.zip
version2_1upgrade_profile.zip
version2_2upgrade_profile.zip
@ -27,11 +27,11 @@ support-files =
[test_morgueCleanup.js]
[test_obsoleteOriginAttributesUpgrade.js]
[test_obsoleteOrigins.js]
[test_originAttributesUpgrade.js]
[test_upgradeFromIndexedDBDirectory.js]
[test_upgradeFromIndexedDBDirectory_removeOldDirectory.js]
[test_upgradeFromFlatOriginDirectories.js]
[test_upgradeFromPersistentStorageDirectory.js]
[test_upgradeFromPersistentStorageDirectory_removeOldDirectory.js]
[test_upgradeFromPersistentStorageDirectory_upgradeOriginDirectories.js]
[test_upgradeStorageFrom0_0.js]
[test_version2_1upgrade.js]