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)

x86
macOS
defect
Not set
normal

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.
- 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 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)
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!
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 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+
Nominating for koi+ Tests only No risk
Status: NEW → RESOLVED
blocking-b2g: --- → koi?
Closed: 11 years ago
Resolution: --- → FIXED
Flags: needinfo?(firefoxos-ux-bugzilla)
dont need to block on tests, and already landed on master
blocking-b2g: koi? → ---
(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.
Clearing the UX request since it no longer applies.
Flags: needinfo?(firefoxos-ux-bugzilla)
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.

Attachment

General

Created:
Updated:
Size: