Closed Bug 959708 Opened 11 years ago Closed 11 years ago

[marionette-plugin-forms] setValue fails if element has not been seen before

Categories

(Testing Graveyard :: JSMarionette, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mmedeiros, Assigned: mmedeiros)

Details

Attachments

(1 file)

if form contain inputs missing the [type] attribute `setValue` will throw an error. > TypeError: Cannot call method 'trim' of undefined > at Object.<anonymous> (/Users/millermedeiros/Projects/gaia/node_modules/marionette-plugin-forms/lib/index.js:30:17)
Assignee: nobody → mmedeiros
Blocks: 916411
bug doesn't seen to be related to [type] attribute, but I will keep investigating it and push more tests.
Summary: [marionette-plugin-forms] setValue fails if input doesn't have type attribute → [marionette-plugin-forms] setValue fails if element has not been seen before
Attachment #8359948 - Flags: review?(mike)
No longer blocks: 916411
Comment on attachment 8359948 [details] [review] Link to github pull request Hey Miller, Nice catch! Although in this case, maybe I should say "nice throw" :P Sorry to have been the cause of debugging woes. I have one request for a change to your tests--see in-line comment on the pull request on GitHub: https://github.com/millermedeiros/marionette-plugin-forms/commit/8dccfbff2bd52aea755ea9fe3a7dd0d3bd3c0c10#commitcomment-5071195
Attachment #8359948 - Flags: review?(mike)
(In reply to Mike Pennisi [:jugglinmike] from comment #3) > I have one request for a change to your tests--see in-line comment on the > pull request on GitHub: > https://github.com/millermedeiros/marionette-plugin-forms/commit/ > 8dccfbff2bd52aea755ea9fe3a7dd0d3bd3c0c10#commitcomment-5071195 I agree with your suggestion, just updated pull request and squashed commits. Thanks for the quick response!
Comment on attachment 8359948 [details] [review] Link to github pull request Looking good, Miller; thanks! One note about BugZilla process: I unset the "review?" flag in comment 3 to reflect the fact that I had reviewed the commit and was awaiting your response--this also removes the bug from my BugZilla dashboard [1]. If you re-set the "review?" flag, my dashboard will be updated to tell me that your patch is ready for another look. This can seem like a lot of overhead, but it really helps reviewers to keep on top of their bugs. [1] https://bugzilla.mozilla.org/page.cgi?id=mydashboard.html
Attachment #8359948 - Flags: feedback+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Testing → Testing Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: