Bug 1521987 - Add missing doorhanger staging tests. r=mhowell
authorRobert Strong <robert.bugzilla@gmail.com>
Tue, 22 Jan 2019 18:55:56 -0800
changeset 514969 48afe4849336998668fc7761597f0c74b57a656a
parent 514968 cb5546692ed64bbb4d8e82dd971d21d0029810a3
child 514970 9da9417d2cb94573b490905bfea14b454568a489
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmhowell
bugs1521987
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1521987 - Add missing doorhanger staging tests. r=mhowell
toolkit/mozapps/update/tests/browser/browser.ini
toolkit/mozapps/update/tests/browser/browser_doorhanger_bc_downloaded_staged.js
toolkit/mozapps/update/tests/browser/browser_doorhanger_sp_patch_partialApplyFailure_complete_staging.js
--- a/toolkit/mozapps/update/tests/browser/browser.ini
+++ b/toolkit/mozapps/update/tests/browser/browser.ini
@@ -31,27 +31,29 @@ reason = Bug 1520672 and Bug 1168003
 [browser_about_fc_patch_partialBadSize.js]
 [browser_about_fc_patch_partialBadSize_complete.js]
 [browser_about_fc_patch_partialBadSize_completeBadSize.js]
 [browser_doorhanger_bc_check_cantApply.js]
 skip-if = os != 'win'
 reason = test must be able to prevent file deletion.
 [browser_doorhanger_bc_check_malformedXML.js]
 [browser_doorhanger_bc_downloaded.js]
+[browser_doorhanger_bc_downloaded_staged.js]
 [browser_doorhanger_bc_downloadAutoFailures.js]
 [browser_doorhanger_bc_downloadAutoFailures_bgWin.js]
 [browser_doorhanger_bc_downloadOptIn.js]
 [browser_doorhanger_bc_downloadOptIn_bgWin.js]
 [browser_doorhanger_bc_downloadOptIn_staging.js]
 skip-if = (os == "linux" && verify) || asan
 reason = Bug 1520672 and Bug 1168003
 [browser_doorhanger_bc_patch_completeBadSize.js]
 [browser_doorhanger_bc_patch_partialBadSize.js]
 [browser_doorhanger_bc_patch_partialBadSize_complete.js]
 [browser_doorhanger_bc_patch_partialBadSize_completeBadSize.js]
 [browser_doorhanger_sp_patch_completeApplyFailure.js]
 [browser_doorhanger_sp_patch_partialApplyFailure.js]
 [browser_doorhanger_sp_patch_partialApplyFailure_complete.js]
+[browser_doorhanger_sp_patch_partialApplyFailure_complete_staging.js]
 [browser_doorhanger_sp_patch_partialApplyFailure_completeBadSize.js]
 [browser_updateAutoPrefUI.js]
 skip-if = os != 'win'
 reason = Tests that update config is properly written to file, which is a Windows-only feature
 [browser_TelemetryUpdatePing.js]
copy from toolkit/mozapps/update/tests/browser/browser_doorhanger_bc_downloaded.js
copy to toolkit/mozapps/update/tests/browser/browser_doorhanger_bc_downloaded_staged.js
--- a/toolkit/mozapps/update/tests/browser/browser_doorhanger_bc_downloaded.js
+++ b/toolkit/mozapps/update/tests/browser/browser_doorhanger_bc_downloaded_staged.js
@@ -1,9 +1,13 @@
 add_task(async function testCompleteAndPartialPatchesWithBadCompleteSize() {
+  SpecialPowers.pushPrefEnv({set: [
+    [PREF_APP_UPDATE_STAGING_ENABLED, true],
+  ]});
+
   let updateParams = "invalidCompleteSize=1&promptWaitTime=0";
 
   await runUpdateTest(updateParams, 1, [
     {
       notificationId: "update-restart",
       button: "secondarybutton",
       cleanup() {
         AppMenuNotifications.removeNotification(/.*/);
copy from toolkit/mozapps/update/tests/browser/browser_doorhanger_sp_patch_partialApplyFailure_complete.js
copy to toolkit/mozapps/update/tests/browser/browser_doorhanger_sp_patch_partialApplyFailure_complete_staging.js
--- a/toolkit/mozapps/update/tests/browser/browser_doorhanger_sp_patch_partialApplyFailure_complete.js
+++ b/toolkit/mozapps/update/tests/browser/browser_doorhanger_sp_patch_partialApplyFailure_complete_staging.js
@@ -1,9 +1,13 @@
 add_task(async function testPartialPatchApplyFailureWithCompleteAvailable() {
+  SpecialPowers.pushPrefEnv({set: [
+    [PREF_APP_UPDATE_STAGING_ENABLED, true],
+  ]});
+
   let patchProps = {type: "partial",
                     state: STATE_PENDING};
   let patches = getLocalPatchString(patchProps);
   patchProps = {selected: "false"};
   patches += getLocalPatchString(patchProps);
   let updateProps = {isCompleteUpdate: "false",
                      promptWaitTime: "0"};
   let updates = getLocalUpdateString(updateProps, patches);