Closed
Bug 909386
Opened 11 years ago
Closed 11 years ago
[Clock] Refactor Stopwatch API
Categories
(Firefox OS Graveyard :: Gaia::Clock, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: evhan55, Assigned: evhan55)
References
Details
Attachments
(1 file)
Refactor and re-implement Stopwatch API. Write tests for it.
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → evelyn
Assignee | ||
Updated•11 years ago
|
Summary: Refactor Stopwatch API → [Clock] Refactor Stopwatch API
Comment 1•11 years ago
|
||
Update to reflect User Story dependencies
Assignee | ||
Comment 2•11 years ago
|
||
New Stopwatch API start() starts the stopwatch getElapsedTime() gets a Date object storing the duration since starting the stopwatch pause() pauses the stopwatch lap() returns a Date object storing the duration since the last lap, or if no last lap, since starting the stopwatch reset() sets the stopwatch's elapsed time back to 0 Tests tested the API functions in their own suites, leaving out start() since its encompassed by the test for getElapsedTime() Questions not sure if the view needs the model to return a list of all lap times, can the view handle that list itself?
Attachment #797424 -
Flags: review?(mike)
Comment 3•11 years ago
|
||
Comment on attachment 797424 [details] [review] https://github.com/mozilla-b2g/gaia/pull/11846 This is a good first pass, Evelyn! I've left comments on the pull request on GitHub. Please re-set the "review" flag when you'd like me to take another look.
Attachment #797424 -
Flags: review?(mike)
Assignee | ||
Comment 4•11 years ago
|
||
Wooh, thanks, captain! Will do!
Assignee | ||
Updated•11 years ago
|
Attachment #797424 -
Flags: review?(mike)
Comment 5•11 years ago
|
||
Comment on attachment 797424 [details] [review] https://github.com/mozilla-b2g/gaia/pull/11846 Looking good, Evelyn! I'll merge this post-haste
Comment 6•11 years ago
|
||
master: https://github.com/mozilla-b2g/gaia/commit/6879d212d8f0030d64e30441dd4cdfc16415478e Nice work :)
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•11 years ago
|
||
hooray!
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3335f50ebaba
Comment 9•11 years ago
|
||
Comment on attachment 797424 [details] [review] https://github.com/mozilla-b2g/gaia/pull/11846 Looks like I forgot to set the review flag on the patch (which has since landed in master). Setting it now for bookkeeping purposes.
Attachment #797424 -
Flags: review?(mike) → review+
Updated•11 years ago
|
Attachment mime type: text/plain → text/x-github-pull-request
You need to log in
before you can comment on or make changes to this bug.
Description
•