[Webkit-unassigned] [Bug 92040] Delete text from password does nothing, proposed fix

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 18:13:12 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92040





--- Comment #26 from Carlos <carloschilazo at gmail.com>  2012-08-02 18:13:11 PST ---
(In reply to comment #24)
> (From update of attachment 156220 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=156220&action=review
> 
> > LayoutTests/editing/deleting/password-delete-contents-expected.txt:3
> > +PASS textField.value == desiredString is true
> 
> This output doesn't tell us what we're testing.
> 
> > LayoutTests/editing/deleting/password-delete-contents.html:26
> > +    textField.value = "helllo";
> > +    textField.focus();
> > +    textField.selectionStart = 3;
> > +    textField.selectionEnd = 4;
> > +
> > +    testRunner.execCommand("Delete",false,null)
> > +    shouldBeTrue('textField.value == desiredString');
> 
> It should have been better to include the test code in should* itself as in:
> shouldBe("passwordField.value='helllo'; passwordField.setSelectionRange(3, 4); testRunner.execCommand('Delete', false, null); passwordField.value", "'hello'");
> so that you can see the test code itself in the expected result.
Thank you very much for your patience, surely I've learned a lot from this, resubmitted

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list