Closed
Bug 976986
Opened 12 years ago
Closed 12 years ago
SettingsListener should have unobserve() method
Categories
(Firefox OS Graveyard :: Gaia, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: dwi2, Assigned: dwi2)
References
Details
(Whiteboard: [in-bubble-tea])
Attachments
(2 files, 1 obsolete file)
Some classes of system app 'observe' some setting values but unable to 'unobserve' them, this make unit tests of these class difficult to read and to write. And 'unobserve()' method should be existed to be pair of 'observe()' from design point of view.
| Assignee | ||
Comment 1•12 years ago
|
||
it's a follow-up of bug 971498
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → tzhuang
| Assignee | ||
Comment 3•12 years ago
|
||
a WIP patch, I am still working on the unit test of it
| Assignee | ||
Comment 4•12 years ago
|
||
Comment on attachment 8388281 [details] [review]
pull request
Hi Alive,
Please help to review the patch, Thanks.
Attachment #8388281 -
Attachment description: WIP patch → pull request
Attachment #8388281 -
Flags: review?(alive)
| Assignee | ||
Comment 5•12 years ago
|
||
Comment on attachment 8388281 [details] [review]
pull request
I should ask for review from Tim because he is the original author.
Attachment #8388281 -
Flags: review?(timdream)
Attachment #8388281 -
Flags: review?(alive)
Attachment #8388281 -
Flags: feedback?(alive)
Comment 6•12 years ago
|
||
Comment on attachment 8388281 [details] [review]
pull request
The code itself is fine.
I would like to see setTimeout() in mock_navigator_moz_settings.js in being removed, instead of being workaround'd with fake timers. We shouldn't simulate async operation with setTimeout(). I won't object if that's being done in the next bug though.
Attachment #8388281 -
Flags: review?(timdream) → review+
| Assignee | ||
Comment 7•12 years ago
|
||
Hi Tim,
I filed a follow up bug in order to remove all async method/DOM request simulated timers in unit test - bug 982544.
And bubble-tea is freezed now, I'll land this patch to master once bubble-tea merge into master.
| Assignee | ||
Comment 8•12 years ago
|
||
Old PR to bubble-tea is obsolete because branch bubble-tea is freezed.
I made a new PR to master with exact the same patch, but I still need Tim's review+ before landing the patch
Attachment #8388281 -
Attachment is obsolete: true
Attachment #8388281 -
Flags: feedback?(alive)
Attachment #8390974 -
Flags: review?(timdream)
Comment 9•12 years ago
|
||
Comment on attachment 8390974 [details] [review]
pull request against master
You should land on bubble-tea, don't worry about it.
Attachment #8390974 -
Flags: review?(timdream)
| Assignee | ||
Updated•12 years ago
|
Attachment #8388281 -
Attachment is obsolete: false
| Assignee | ||
Updated•12 years ago
|
Attachment #8390974 -
Attachment is obsolete: true
| Assignee | ||
Comment 10•12 years ago
|
||
Travis green
https://travis-ci.org/mozilla-b2g/gaia/builds/20516745
Landed on bubble-tea
https://github.com/mozilla-b2g/gaia/commit/77405d208b6209a149e61802f4ba5aa099f33c9e
Whiteboard: [in-bubble-tea]
Comment 11•12 years ago
|
||
Comment 12•12 years ago
|
||
travis all green, merged https://github.com/mozilla-b2g/gaia/pull/17495
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•