toolkit/mozapps/update/tests/browser/browser.ini
author Drew Willcoxon <adw@mozilla.com>
Tue, 03 Dec 2019 06:01:32 +0000
changeset 566682 76bfe47a96892f087cc63b184d39e9ff03a573f4
parent 537317 62e0ef6e50dd017cfa6dc2a4772b481520b3c74d
child 566922 1f7cade7bd19e82fbf9f24449ea52566a4d78d28
permissions -rw-r--r--
Bug 1599360 - Use AppUpdater.jsm in aboutDialog-appUpdater.js when preffed on, and use the current implementation when preffed off r=rstrong a=jcristau Summary of changes: * Copy aboutDialog-appUpdater.js to a new aboutDialog-appUpdater-legacy.js file * Update aboutDialog-appUpdater.js: Rewrite it to use the new AppUpdater.jsm when the `browser.aboutDialogNewAppUpdater` pref is true, and load aboutDialog-appUpdater-legacy.js otherwise * In toolkit/mozapps/update/tests/browser, add new browser.legacy.ini and browser.legacy.bits.ini files that do not set `browser.aboutDialogNewAppUpdater` to true, so that the old implementation is still tested * Update browser.ini and browser.bits.ini files to set `browser.aboutDialogNewAppUpdater` to true so that the new implementation is tested If all this is OK, I'll file another bug for removing the legacy stuff once we merge. Differential Revision: https://phabricator.services.mozilla.com/D54837

[DEFAULT]
dupe-manifest =
tags = appupdate internal
head = head.js
support-files =
  ../data/shared.js
  ../data/sharedUpdateXML.js
  app_update.sjs
  downloadPage.html
  testConstants.js
prefs =
  app.update.BITS.enabled=false
  browser.aboutDialogNewAppUpdater=true

# About Dialog Application Update Tests
[browser_aboutDialog_bc_downloading.js]
[browser_aboutDialog_bc_downloading_staging.js]
[browser_aboutDialog_bc_downloaded.js]
[browser_aboutDialog_bc_downloaded_staging.js]
[browser_aboutDialog_bc_downloaded_stagingFailure.js]
[browser_aboutDialog_bc_downloaded_staged.js]
[browser_aboutDialog_fc_downloadAuto.js]
[browser_aboutDialog_fc_downloadAuto_staging.js]
[browser_aboutDialog_fc_downloadOptIn.js]
[browser_aboutDialog_fc_downloadOptIn_staging.js]
[browser_aboutDialog_fc_patch_completeBadSize.js]
[browser_aboutDialog_fc_patch_partialBadSize.js]
[browser_aboutDialog_fc_patch_partialBadSize_complete.js]
[browser_aboutDialog_fc_patch_partialBadSize_completeBadSize.js]
[browser_aboutDialog_fc_check_cantApply.js]
skip-if = os != 'win'
reason = test must be able to prevent file deletion.
[browser_aboutDialog_fc_check_malformedXML.js]
[browser_aboutDialog_fc_check_noUpdate.js]
[browser_aboutDialog_fc_check_otherInstance.js]
skip-if = os != 'win'
reason = Windows only feature.
[browser_aboutDialog_fc_check_unsupported.js]
[browser_aboutDialog_newAppUpdater.js]

# about:preferences Application Update Tests
[browser_aboutPrefs_bc_downloading.js]
[browser_aboutPrefs_bc_downloading_staging.js]
[browser_aboutPrefs_bc_downloaded.js]
[browser_aboutPrefs_bc_downloaded_staging.js]
[browser_aboutPrefs_bc_downloaded_stagingFailure.js]
[browser_aboutPrefs_bc_downloaded_staged.js]
[browser_aboutPrefs_fc_downloadAuto.js]
[browser_aboutPrefs_fc_downloadAuto_staging.js]
[browser_aboutPrefs_fc_downloadOptIn.js]
[browser_aboutPrefs_fc_downloadOptIn_staging.js]
[browser_aboutPrefs_fc_patch_completeBadSize.js]
[browser_aboutPrefs_fc_patch_partialBadSize.js]
[browser_aboutPrefs_fc_patch_partialBadSize_complete.js]
[browser_aboutPrefs_fc_patch_partialBadSize_completeBadSize.js]
[browser_aboutPrefs_fc_check_cantApply.js]
skip-if = os != 'win'
reason = test must be able to prevent file deletion.
[browser_aboutPrefs_fc_check_malformedXML.js]
[browser_aboutPrefs_fc_check_noUpdate.js]
[browser_aboutPrefs_fc_check_otherInstance.js]
skip-if = os != 'win'
reason = Windows only feature.
[browser_aboutPrefs_fc_check_unsupported.js]
[browser_aboutPrefs_settings.js]

# Doorhanger Application Update Tests
[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_check_unsupported.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]
[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]

# Telemetry Application Update Tests
[browser_telemetry_completeBadSize.js]
[browser_telemetry_partialBadSize_completeBadSize.js]
[browser_telemetry_complete_stageFailure.js]
[browser_telemetry_partial_stageFailure_complete_stageFailure.js]
[browser_telemetry_complete_applyFailure.js]
[browser_telemetry_partial_applyFailure_complete_applyFailure.js]
[browser_telemetry_partial_applyFailure_complete_stageFailure.js]
[browser_telemetry_partial_applyFailure_complete_applied.js]
[browser_telemetry_partial_applyFailure_complete_staged_applied.js]
[browser_telemetry_partialBadSize_complete_staged_applied.js]
[browser_telemetry_complete_applied.js]
[browser_telemetry_partial_applied.js]
[browser_telemetry_partial_staged_applied.js]
[browser_telemetry_complete_staged_applied.js]


# Elevation Dialog Tests
[browser_elevationDialog.js]

# Telemetry Update Ping Tests
[browser_telemetry_updatePing_ready.js]