Closed Bug 1656018 Opened 4 years ago Closed 4 years ago

Update tests should use AppInfo to generate mock application info objects

Categories

(Toolkit :: Application Update, task)

task

Tracking

()

RESOLVED FIXED
81 Branch
Tracking Status
firefox81 --- fixed

People

(Reporter: mossop, Assigned: mossop)

Details

Attachments

(1 file)

I think the update code is the only place remaining that creates its own appinfo objects meaning that it is missing a couple of things that other components expect to exist. We should switch to using AppInfo.jsm like everything else.

This uses AppInfo to generate the mock appinfo objects rather than rolling our
own so we can share improvements to that with the rest of the tree.

The mock appinfo used for setUpdateURL also doesn't expose various properties
that may be expected to exist. We can't use AppInfo here as we dynamically
replace Services.appinfo in browser-chrome tests. Instead this makes the mock
appinfo object use the real object as a prototype replacing only the updateURL
property.

Pushed by dtownsend@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/cf5eb7674c05
Switch the update service tests to use AppInfo.jsm. r=mhowell
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 81 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: