Closed
Bug 1037337
Opened 10 years ago
Closed 10 years ago
[NFC] NfcManager cleanup, add jsdoc, add missing unit tests etc.
Categories
(Firefox OS Graveyard :: NFC, defect)
Tracking
(b2g-v2.1 fixed)
RESOLVED
FIXED
2.1 S2 (15aug)
Tracking | Status | |
---|---|---|
b2g-v2.1 | --- | fixed |
People
(Reporter: tauzen, Assigned: tauzen)
References
Details
Attachments
(1 file)
Before implementing instantiable NfcManager (Bug 971520) additional cleanup is needed: 1. marking private methods with '_' 2. jsdoc 3. remaining unit tests 4. rethinking ndef parsing for purpose of activity launching - it seems that ndef_utils might be a good place to do this. Points 3 and 4 might be done in separate bugs, depending on the complexity of changes.
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 1•10 years ago
|
||
Missing unit tests were introduced in Bug 1049566. NDEF parsing was moved to nfc_utils.js in Bug 1039245. Changes in this patch: 1. using arrow function instead of var self = this 2. removed isScreenUnlockAndEnabled - not needed 3. added missing comments 4. marked private methods, properties with _ 5. small refactoring Greg could you review this?
Attachment #8472122 -
Flags: review?(gweng)
Assignee | ||
Updated•10 years ago
|
Target Milestone: --- → 2.1 S2 (15aug)
Comment 2•10 years ago
|
||
Comment on attachment 8472122 [details] [review] pull-request-1037337.txt Great!
Updated•10 years ago
|
Attachment #8472122 -
Flags: review?(gweng) → review+
Comment 4•10 years ago
|
||
Master: https://github.com/mozilla-b2g/gaia/commit/0e2277c7359d889f72eb623d05d63761ad4074e0
Status: NEW → RESOLVED
Closed: 10 years ago
status-b2g-v2.1:
--- → fixed
Keywords: checkin-needed
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•