Closed
Bug 1306140
Opened 8 years ago
Closed 8 years ago
Add tests to ensure there is always one default homepanel after HomePanel migrations
Categories
(Firefox for Android Graveyard :: Awesomescreen, defect, P1)
Firefox for Android Graveyard
Awesomescreen
Tracking
(firefox52 fixed)
RESOLVED
FIXED
Firefox 52
Tracking | Status | |
---|---|---|
firefox52 | --- | fixed |
People
(Reporter: ahunt, Assigned: ahunt)
References
Details
(Whiteboard: [MobileAS])
Attachments
(3 files)
HomePanelConfig migrations that resulted in no default panel being set have bitten us twice:
- Bug 1304777
- Bug 1264136
We should add some tests that ideally walk through every permutation, to ensure that we never end up without a default homepanel being set.
Assignee | ||
Updated•8 years ago
|
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Comment 4•8 years ago
|
||
mozreview-review |
Comment on attachment 8796268 [details]
Bug 1306140 - Pre: move HomeConfig migration loop into separate method to help with testing
https://reviewboard.mozilla.org/r/82174/#review80754
Attachment #8796268 -
Flags: review?(s.kaspari) → review+
Comment 5•8 years ago
|
||
mozreview-review |
Comment on attachment 8796269 [details]
Bug 1306140 - Pre: make HomeConfig VERSION package-private to allow access for testing
https://reviewboard.mozilla.org/r/82176/#review80756
::: mobile/android/base/java/org/mozilla/gecko/home/HomeConfigPrefsBackend.java:39
(Diff revision 1)
>
> public class HomeConfigPrefsBackend implements HomeConfigBackend {
> private static final String LOGTAG = "GeckoHomeConfigBackend";
>
> // Increment this to trigger a migration.
> - private static final int VERSION = 8;
> + /* package-private */ static final int VERSION = 8;
If this is just for testing then you could add @VisibleForTesting instead of the comment here.
Attachment #8796269 -
Flags: review?(s.kaspari) → review+
Comment 6•8 years ago
|
||
mozreview-review |
Comment on attachment 8796270 [details]
Bug 1306140 - Add tests for HomeConfig migration
https://reviewboard.mozilla.org/r/82178/#review80766
Attachment #8796270 -
Flags: review?(s.kaspari) → review+
Assignee | ||
Updated•8 years ago
|
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment hidden (mozreview-request) |
Pushed by ahunt@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/39b96ac89699
Pre: move HomeConfig migration loop into separate method to help with testing r=sebastian
https://hg.mozilla.org/integration/autoland/rev/aeccc63b252a
Pre: make HomeConfig VERSION package-private to allow access for testing r=sebastian
https://hg.mozilla.org/integration/autoland/rev/cdf154426881
Add tests for HomeConfig migration r=sebastian
Comment 10•8 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/39b96ac89699
https://hg.mozilla.org/mozilla-central/rev/aeccc63b252a
https://hg.mozilla.org/mozilla-central/rev/cdf154426881
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 52
Updated•8 years ago
|
Iteration: --- → 1.5
Updated•4 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
•