Closed Bug 816111 Opened 13 years ago Closed 13 years ago

Remove appdir dependency for application update tests in xpcshell tests

Categories

(Toolkit :: Application Update, defect)

x86_64
Windows 8.1
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: bbondy, Assigned: bbondy)

References

Details

(Whiteboard: [metro-it1][LOE:1][metro-mvp][completed-elm])

Attachments

(1 file)

Some toolkit/mozapps/update tests rely on having application specific preferences defined. One examples of this is app.update.service.enabled being set to true on Windows. But not all apps that use toolkit/mozapps/ will have that set to true, so we should explicitly set it to true for the test that expects it to be set to true. This matters more once metro lands because the ini file needs to specify the appdir for preferences. Currently on elm we had to set it to browser, but I don't think that's right inside of toolkit.
(In reply to Brian R. Bondy [:bbondy] from comment #1) > For reference default prefs should be set like this: > http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/test/ > chrome/utils.js#821 user pref or default pref that needs tp be set for the test. If there are prefs that should be set prior to running any tests (e.g. disabling app update checks and add-ons update checks so they don't run due to the interval to check expiring, etc.) you can set prefs for all tests as follows http://mxr.mozilla.org/mozilla-central/source/testing/tps/tps/testrunner.py#57 http://mxr.mozilla.org/mozilla-central/source/testing/mozbase/mozprofile/mozprofile/profile.py#227 etc.
Attached patch Patch v1Splinter Review
Turned out to be easier than I thought, the maintenance service pref was the only one causing problems locally. Pushing this to try now though to be sure. Will request review if it passes.
I'll sync review comments if any to elm: https://hg.mozilla.org/projects/elm/rev/dee809938d3d
Whiteboard: [metro-it1][LOE:1][metro-mvp] → [metro-it1][LOE:1][metro-mvp][completed-elm]
Comment on attachment 686411 [details] [diff] [review] Patch v1 This review request is for m-c. Ignore the xpcshell.ini changes though, that's only on elm and it was only done to get the xpcshell tests working temporarily.
Attachment #686411 - Flags: review?(robert.bugzilla)
Blocks: 789335
Attachment #686411 - Flags: review?(robert.bugzilla) → review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
OS: Windows 8 Metro → Windows 8.1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: