Bug 1404344 - Part 3: Rename QuotaManager tests from 3_0 to 2_1. r=janv, a=ritu
authorAndrew Sutherland <asutherland@asutherland.org>
Tue, 03 Oct 2017 10:03:19 -0400
changeset 432605 2a12a0f1984c90bde7bc51dc3b76077902177721
parent 432604 23f60d61fee7240c71b3cd01622d6be925ceb9bd
child 432606 5f8523ca22a5567570ca8d173579ab80212b6190
push id8003
push userryanvm@gmail.com
push dateWed, 18 Oct 2017 22:23:15 +0000
treeherdermozilla-beta@adc0384c565a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjanv, ritu
bugs1404344
milestone57.0
Bug 1404344 - Part 3: Rename QuotaManager tests from 3_0 to 2_1. r=janv, a=ritu Upgrade the test names from 3.0/3_0 to 2.1/2_1, consistent with the changes made in part 1.
dom/quota/test/unit/test_version2_1upgrade.js
dom/quota/test/unit/test_version3_0upgrade.js
dom/quota/test/unit/version2_1upgrade_profile.zip
dom/quota/test/unit/version3_0upgrade_profile.zip
dom/quota/test/unit/xpcshell.ini
rename from dom/quota/test/unit/test_version3_0upgrade.js
rename to dom/quota/test/unit/test_version2_1upgrade.js
--- a/dom/quota/test/unit/test_version3_0upgrade.js
+++ b/dom/quota/test/unit/test_version2_1upgrade.js
@@ -25,36 +25,36 @@ function* testSteps()
   // was temporarily added to xpcshell.ini and then executed:
   //   mach xpcshell-test --interactive dom/quota/test/unit/create_cache.js
   // Note: it only creates the directory "storage/default/chrome/cache".
   // To make it become the profile in the test, two more manual steps are
   // needed.
   // 1. Remove the folder "storage/temporary".
   // 2. Copy the content under the "storage/default/chrome" to
   //    "storage/default/http+++www.mozilla.org".
-  installPackage("version3_0upgrade_profile");
+  installPackage("version2_1upgrade_profile");
 
   info("Checking padding file before upgrade (QM version 2.0)");
 
   for (let origin of origins) {
     let paddingFile = getRelativeFile(origin + paddingFilePath);
 
     let exists = paddingFile.exists();
     ok(!exists, "Padding file doesn't exist");
   }
 
   info("Initializing");
 
-  // Initialize QuotaManager to trigger upgrade the QM to version 3.0
+  // Initialize QuotaManager to trigger upgrade the QM to version 2.1
   let request = init(continueToNextStepSync);
   yield undefined;
 
   ok(request.resultCode == NS_OK, "Initialization succeeded");
 
-  info("Checking padding files after upgrade (QM version 3.0)");
+  info("Checking padding files after upgrade (QM version 2.1)");
 
   for (let origin of origins) {
     let paddingFile = getRelativeFile(origin + paddingFilePath);
 
     let exists = paddingFile.exists();
     ok(exists, "Padding file does exist");
 
     info("Reading out contents of padding file");
rename from dom/quota/test/unit/version3_0upgrade_profile.zip
rename to dom/quota/test/unit/version2_1upgrade_profile.zip
--- a/dom/quota/test/unit/xpcshell.ini
+++ b/dom/quota/test/unit/xpcshell.ini
@@ -11,25 +11,25 @@ support-files =
   idbSubdirUpgrade1_profile.zip
   idbSubdirUpgrade2_profile.zip
   morgueCleanup_profile.zip
   obsoleteOriginAttributes_profile.zip
   originAttributesUpgrade_profile.zip
   removeAppsUpgrade_profile.zip
   storagePersistentUpgrade_profile.zip
   tempMetadataCleanup_profile.zip
-  version3_0upgrade_profile.zip
+  version2_1upgrade_profile.zip
 
 [test_basics.js]
 [test_bad_origin_directory.js]
 skip-if = release_or_beta
 [test_defaultStorageUpgrade.js]
 [test_getUsage.js]
 [test_idbSubdirUpgrade.js]
 [test_morgueCleanup.js]
 [test_obsoleteOriginAttributesUpgrade.js]
 [test_originAttributesUpgrade.js]
 [test_persist.js]
 [test_removeAppsUpgrade.js]
 [test_storagePersistentUpgrade.js]
 [test_tempMetadataCleanup.js]
 [test_unknownFiles.js]
-[test_version3_0upgrade.js]
+[test_version2_1upgrade.js]