Closed Bug 862704 Opened 11 years ago Closed 11 years ago

Fix failing MobileOperaror unit tests

Categories

(Firefox OS Graveyard :: Gaia::System, defect)

x86_64
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: julienw, Assigned: julienw)

References

Details

Attachments

(1 file)

The errors really come from a bad status bar test teardown.

patch is coming
Attached patch patch v1Splinter Review
The errors really come from a bad status bar test teardown. So this patch is
adding a teardown operation to the mock for MobileOperator, and is fixing the
teardown of the tests for status bar.

Sadly, we were really testing the mock for MobileOperator because of that.

This is also reverting part of Bug 844738.
---
 apps/system/test/unit/mock_mobile_operator.js |    6 +++++-
 apps/system/test/unit/statusbar_test.js       |   10 +---------
 2 files changed, 6 insertions(+), 10 deletions(-)

see also PR https://github.com/mozilla-b2g/gaia/pull/9226
Attachment #738382 - Flags: review?(alive)
Assignee: nobody → felash
Comment on attachment 738382 [details] [diff] [review]
patch v1

The reason sounds sane.
(But I am still questioning a unit test shouldn't affect other unit test..sigh.)
Attachment #738382 - Flags: review?(alive) → review+
master: 77c105c7b5eb9e23fd40382ecda5b434aa1d11a4
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: