Closed
Bug 1005921
Opened 10 years ago
Closed 10 years ago
Make the callscreen jshint-clean
Categories
(Firefox OS Graveyard :: Gaia::Dialer, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
2.1 S6 (10oct)
People
(Reporter: gsvelto, Assigned: kgrandon)
Details
(Whiteboard: [systemsfe])
Attachments
(1 file, 1 obsolete file)
The callscreen code contains a number of issues beyond the usual syntax glitches that prevent us from making it jshint-clean. This includes binding event listeners during the evaluation phase of certain apps as well as caching certains globals (such as navigator.mozTelephony or navigator.mozBluetooth) during evaluation which prevents the relevant components from being instantiable w/o side-effects. These issues do not cause linter issues directly but affect the unit-tests in such ways that we need horrible hacks to work around them. Those hacks in turn cause the linter to fail spectacularly. I feel this is important because some of the linter errors may actually be some actual errors on our part.
Reporter | ||
Comment 1•10 years ago
|
||
This is a WIP pull request that cleans up the HandledCall and CallsHandler code but breaks some unit-tests. If you feel adventurous feel free to pick up from here :)
Assignee | ||
Comment 2•10 years ago
|
||
Anthony, just knocking these files off the jshint ignore real quick - Could you review it? Thanks!
Attachment #8417411 -
Attachment is obsolete: true
Attachment #8496591 -
Flags: review?(anthony)
Assignee | ||
Comment 3•10 years ago
|
||
It looked like the old PR here was obsoleted by work in another bug, since I saw these few files remaining I thought that we should just quickly fix them. Thanks!
Comment 4•10 years ago
|
||
Comment on attachment 8496591 [details] [review] Pull request Ah very cool!
Attachment #8496591 -
Flags: review?(anthony) → review+
Assignee | ||
Comment 5•10 years ago
|
||
In master: https://github.com/mozilla-b2g/gaia/commit/8c1c17dc0b87c67d44c8b9df06c43ad78df4f241
Assignee: nobody → kgrandon
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Whiteboard: [systemsfe]
Target Milestone: --- → 2.1 S6 (10oct)
You need to log in
before you can comment on or make changes to this bug.
Description
•