Closed
Bug 873750
Opened 12 years ago
Closed 12 years ago
fix communications/contacts tests
Categories
(Firefox OS Graveyard :: Gaia::Contacts, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: julienw, Assigned: julienw)
References
Details
Attachments
(2 files, 1 obsolete file)
Various mocks are incorrectly used.
Assignee | ||
Comment 1•12 years ago
|
||
* use the correct name for the facebook mock
* various fixes
---
.../communications/contacts/test/unit/link_test.js | 22 +++++++++++---------
apps/communications/contacts/test/unit/mock_fb.js | 12 +++++------
apps/communications/test/unit/setup.js | 1 +
3 files changed, 19 insertions(+), 16 deletions(-)
It seems we miss a file defining MockAllFacebookContacts.
Assignee: nobody → felash
Assignee | ||
Comment 2•12 years ago
|
||
Jose, I think we miss the mock file defining MockAllFacebookContacts. Could you either attach it to this bug or take my patch and finish it ?
Flags: needinfo?(jmcf)
Assignee | ||
Comment 3•12 years ago
|
||
(see also PR https://github.com/mozilla-b2g/gaia/pull/9861)
Comment 4•12 years ago
|
||
asking for Cristian's review as I believe Julien is on bank holiday today.
Attachment #751342 -
Attachment is obsolete: true
Attachment #751614 -
Flags: review?(crdlc)
Flags: needinfo?(jmcf)
Comment 5•12 years ago
|
||
Comment on attachment 751614 [details]
Fix the link tests by pointing to the proper Mockfb object
:) perfect!
Attachment #751614 -
Flags: review?(crdlc) → review+
Comment 6•12 years ago
|
||
Updated•12 years ago
|
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 7•12 years ago
|
||
Attachment #751642 -
Flags: review?(crdlc)
Updated•12 years ago
|
Attachment #751642 -
Flags: review?(crdlc) → review+
Assignee | ||
Comment 8•12 years ago
|
||
I don't exactly understand why you haven't used my WIP patch ?
It was fixing various problems (eg: Mockfb.utils is defined twice), it was using the new "load_body_html_helper" that makes it easier to create tests, and the only thing that was missing was the file mock_linked_contacts.js that you finally supplied in your latest patch, as I asked in my comment 2.
I think it would have saved you lots of time (and my time doing the WIP patch would not have been wasted).
Anyway I'm happy that the tests are fixed, thanks to you.
You need to log in
before you can comment on or make changes to this bug.
Description
•