Closed Bug 1070731 Opened 10 years ago Closed 10 years ago

[sms] unit test refactoring for new version chai.assert api

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: sv99, Assigned: sv99)

References

Details

Attachments

(1 file)

46 bytes, text/x-github-pull-request
azasypkin
: review+
Details | Review
User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:35.0) Gecko/20100101 Firefox/35.0
Build ID: 20140920030206

Steps to reproduce:

test_agent used very old version chai library version=0.5.3
in the current version=1.9.1 deepEqual take prototype into consideration

apps/sms/test/unit/localization_helper_test.js - plain structure
Component: General → Gaia::SMS
Attached file Link to PR
Attachment #8492760 - Flags: review?(felash)
Assignee: nobody → sv99
Comment on attachment 8492760 [details] [review]
Link to PR

Redirecting to Oleg who knows the localization tests better than me.

Hey Oleg, the goal here is to make the tests ready for updating chai to a newer version. Thanks !
Attachment #8492760 - Flags: review?(felash) → review?(azasypkin)
Comment on attachment 8492760 [details] [review]
Link to PR

Thanks for the patch! I've left few comments on GitHub.

Please set r? once again when you're ready.
Attachment #8492760 - Flags: review?(azasypkin)
Attachment #8492760 - Flags: review?(azasypkin)
some changed, localization_helper - not beautiful but simple plain and worked! in both chai version lib
Thanks
Comment on attachment 8492760 [details] [review]
Link to PR

(In reply to sv99 from comment #4)
> some changed, localization_helper - not beautiful but simple plain and
> worked! in both chai version lib
> Thanks

Thanks! Everything looks good except that I don't really understand necessity of big changes on localization_helper test, left question on github.
Attachment #8492760 - Flags: review?(azasypkin)
Attachment #8492760 - Flags: review?(azasypkin)
Comment on attachment 8492760 [details] [review]
Link to PR

Looks like still one review comment isn't answered. Please see it on GitHub, and set r? when you're ready!

Thanks!
Attachment #8492760 - Flags: review?(azasypkin)
Attachment #8492760 - Flags: review?(azasypkin)
Code changed like you want.
Thanks!
Space corrected.
PR rebased
Comment on attachment 8492760 [details] [review]
Link to PR

Thanks, looks good now!
Attachment #8492760 - Flags: review?(azasypkin) → review+
Please, r=me in the commit message and add checkin-needed keyword to the bug.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
How can i add checkin-needed keyword?
(In reply to sv99 from comment #12)
> How can i add checkin-needed keyword?

There is "Keywords" input at bug page where you can add "checkin-needed" keyword when you got r+, but don't want\can't to land it yourself. 

This time I've just landed it for you, so you don't need "checkin-needed" for this bug, but you can use it in the future :)

Master: https://github.com/mozilla-b2g/gaia/commit/0fcd5d30f298f3a42d7954b2c0cd3e15f245c174

Thanks!
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: