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)
Tracking
()
RESOLVED
FIXED
mozilla20
People
(Reporter: bbondy, Assigned: bbondy)
References
Details
(Whiteboard: [metro-it1][LOE:1][metro-mvp][completed-elm])
Attachments
(1 file)
7.17 KB,
patch
|
robert.strong.bugs
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•13 years ago
|
||
For reference default prefs should be set like this:
http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/update/test/chrome/utils.js#821
![]() |
||
Comment 2•13 years ago
|
||
(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.
Assignee | ||
Comment 3•13 years ago
|
||
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.
Assignee | ||
Comment 4•13 years ago
|
||
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]
Assignee | ||
Comment 5•13 years ago
|
||
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)
![]() |
||
Updated•13 years ago
|
Attachment #686411 -
Flags: review?(robert.bugzilla) → review+
Assignee | ||
Comment 6•13 years ago
|
||
Target Milestone: --- → mozilla20
Comment 7•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
OS: Windows 8 Metro → Windows 8.1
You need to log in
before you can comment on or make changes to this bug.
Description
•