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)
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 | ||
Updated•11 years ago
|
Assignee: nobody → mmedeiros
Assignee | ||
Comment 1•11 years ago
|
||
bug doesn't seen to be related to [type] attribute, but I will keep investigating it and push more tests.
Assignee | ||
Updated•11 years ago
|
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
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8359948 -
Flags: review?(mike)
Comment 3•11 years ago
|
||
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)
Assignee | ||
Comment 4•11 years ago
|
||
(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 5•11 years ago
|
||
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+
Comment 6•11 years ago
|
||
master: https://github.com/mozilla-b2g/marionette-plugin-forms/commit/1edb41508c1fba6563cc241dbfc8c7dc499742a7
I've published a new release (0.0.2) so you can enjoy this change in your projects: https://github.com/mozilla-b2g/marionette-plugin-forms/commit/5fd95d7dc676d3844c4824b88e7c7a9fde756431
Status: NEW → ASSIGNED
Comment 7•11 years ago
|
||
master: https://github.com/mozilla-b2g/marionette-plugin-forms/commit/1edb41508c1fba6563cc241dbfc8c7dc499742a7
(Sorry: I meant to close this in comment 6)
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Testing → Testing Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•