Closed
Bug 904220
Opened 11 years ago
Closed 11 years ago
[Clock] Unit tests should not create actual alarm records
Categories
(Firefox OS Graveyard :: Gaia::Clock, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rwaldron, Assigned: rwaldron)
Details
Attachments
(2 files)
...Or at least they should clean-up/remove any that are created.
Assignee | ||
Comment 1•11 years ago
|
||
- Reorders require files alphabetically
- Adds Mocks:
- mock_alarm_list.js
- mock_alarm_manager.js
- mock_navigator_mozl10n.js
- Update tests to use actual markup as fixture
- Update tests to use the same mocha API as other tests
- Use mocks instead of creating real alarm records
- Use sinon sandbox features
Attachment #789220 -
Flags: review?(mike)
Attachment #789220 -
Flags: review?(iliu)
Comment 2•11 years ago
|
||
Comment on attachment 789220 [details] [review]
Github Pull Request https://github.com/mozilla-b2g/gaia/pull/11498
Hey Rick,
I've left some comments on GitHub. I also noticed that the TravisCI build was failing, and I was able to reproduce the failures locally.
I took some time to investigate, and I found that the failures originated from the new call to `loadBodyHTML`. I've fixed the bug--I'll attach a patch for it here in just a moment.
Attachment #789220 -
Flags: review?(mike)
Comment 3•11 years ago
|
||
Rick:
This patch addresses the test failures in your patch. The solution I found is sub-optimal, though, so I described the problem and my rationale in the commit message. Feel free to try other approaches to solve this!
Assignee | ||
Comment 4•11 years ago
|
||
Merged Mike's changes.
@ian This won't merge cleanly with https://github.com/rwldrn/gaia/commit/272953c2381d7dda4c9113a44f5d19ccc1800692 but the differences are minor and I've already walked through the conflict resolution once with successful results. If you r+ this, I will be able to merge them both into master tomorrow
Comment 5•11 years ago
|
||
Comment on attachment 789220 [details] [review]
Github Pull Request https://github.com/mozilla-b2g/gaia/pull/11498
It's okay for me. Thanks.
Attachment #789220 -
Flags: review?(iliu) → review+
Assignee | ||
Comment 6•11 years ago
|
||
Nominating for koi+
Tests only
No risk
Status: NEW → RESOLVED
blocking-b2g: --- → koi?
Closed: 11 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 7•11 years ago
|
||
Updated•11 years ago
|
Flags: needinfo?(firefoxos-ux-bugzilla)
Comment 8•11 years ago
|
||
dont need to block on tests, and already landed on master
blocking-b2g: koi? → ---
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Tony Chung [:tchung] from comment #8)
> dont need to block on tests, and already landed on master
But koi+ features will have tests that build off the same file and changes.
Comment 10•11 years ago
|
||
Clearing the UX request since it no longer applies.
Flags: needinfo?(firefoxos-ux-bugzilla)
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
•