Closed
Bug 841249
Opened 10 years ago
Closed 10 years ago
[Robocop] Tests for distribution preferences
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 22
People
(Reporter: Margaret, Assigned: capella)
References
Details
Attachments
(1 file, 1 obsolete file)
3.43 KB,
patch
|
Margaret
:
review+
|
Details | Diff | Splinter Review |
In preferences.json, you can specify preferences like this: "Preferences": { "distribution.test.string": "my test string pref", "distribution.test.boolean": true, "distribution.test.int": 5 } We should make sure this works. Once bug 840825 lands, it should be pretty simple to add this testcase there.
Assignee | ||
Comment 1•10 years ago
|
||
First try, small patch.
Assignee: nobody → markcapella
Status: NEW → ASSIGNED
Attachment #718135 -
Flags: review?(margaret.leibovic)
Reporter | ||
Comment 2•10 years ago
|
||
Comment on attachment 718135 [details] [diff] [review] Patch (v1) Review of attachment 718135 [details] [diff] [review]: ----------------------------------------------------------------- Nice! Thanks for helping out. I was about to say that you need to update mock-package.zip, but then I realized that we're already setting these prefs in there, which is cool. ::: mobile/android/base/tests/testDistribution.java.in @@ +120,3 @@ > } > } > + mAsserter.is(mTestPrefCount, TEST_PREF_STORED, "check all stored preferences found"); Is there any reason we wouldn't get all 6 preferences back? Could we just check that preferences.length() is 6? If we do decide to explicitly check that we checked each preference, I think we could just make a local testPrefCount variable, instead of making a member variable for the count.
Assignee | ||
Comment 3•10 years ago
|
||
I can remove that ... I had put that in during testing various options and accidentally misnamed a pref ... for finalized / controlled tests like this getting back preferences we've explicitly set should be a safe assumption.
Assignee | ||
Comment 4•10 years ago
|
||
Removed prefs counting test ...
Attachment #718135 -
Attachment is obsolete: true
Attachment #718135 -
Flags: review?(margaret.leibovic)
Attachment #718746 -
Flags: review?(margaret.leibovic)
Reporter | ||
Updated•10 years ago
|
Attachment #718746 -
Flags: review?(margaret.leibovic) → review+
Assignee | ||
Comment 5•10 years ago
|
||
Push to TRY: https://tbpl.mozilla.org/?tree=Try&rev=44f62f297012
Assignee | ||
Comment 6•10 years ago
|
||
And on to inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/62f32eb94356
Comment 7•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/62f32eb94356
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•