Update wifi_test.js of Gaia unit tests to be compatible with WebIDL migration on Alarm API

RESOLVED FIXED in 2.0 S4 (20june)

Status

Firefox OS
Gaia::System
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: seanlin, Assigned: seanlin)

Tracking

unspecified
2.0 S4 (20june)
ARM
Gonk (Firefox OS)

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

Inspired from bug 901114 comment 33, I realized wifi_test.js should mock navigator.mozAlarms in a more garcefully way, due to the error message "Cannot stub non-existent own property mozAlarms" found in the following try-run:

https://tbpl.mozilla.org/php/getParsedLog.php?id=41022156&tree=Try
Created attachment 8435683 [details]
Patch
Assignee: nobody → selin
Attachment #8435683 - Flags: review?(alive)
Blocks: 901114
Comment on attachment 8435683 [details]
Patch

Please fix the lint error and make sure all tests pass before merging.
Attachment #8435683 - Flags: review?(alive) → review+
Master: https://github.com/mozilla-b2g/gaia/commit/69431ddf22197483cfcdc7db678baa6096b317d5
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → 2.0 S4 (20june)
You need to log in before you can comment on or make changes to this bug.