Summary: | Add a test for resetting a textarea form control | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kirby White <KwhiteRight> | ||||||||
Component: | Forms | Assignee: | Nobody <webkit-unassigned> | ||||||||
Status: | RESOLVED FIXED | ||||||||||
Severity: | Normal | CC: | ddkilzer, mrowe | ||||||||
Priority: | P4 | Keywords: | HasReduction | ||||||||
Version: | 420+ | ||||||||||
Hardware: | PC | ||||||||||
OS: | All | ||||||||||
Attachments: |
|
Description
Kirby White
2006-12-06 14:30:47 PST
Created attachment 11758 [details]
Test case
I can't assign this to myself, but I have a patch ready as soon as I make the unit test.
Your test case already works correctly for me in both WebKit 418.9.1 and ToT. Created attachment 11760 [details]
Unit test for resetting textarea controls
Sorry, I was using a flawed testcase, with a syntactic error that didn't carry over to the reduced one I posted.
Since I already have it, though, here's a test for the problem that turned out not to be a problem. I've verified that this test works, and at the same time checked that no other tests catch the problem, by building a deliberately broken library.
I'd really like to make a PNG for this test, since the value of the textarea in JS might not match the value displayed on the page if it doesn't update properly. But I can't find any information on how to do that. Any pointers?
To create a pixel test, just remove the dumpAsText() call, and add a --pixel switch to run-webkit-tests when generating the results. Created attachment 11762 [details]
Unit test including pixel test
Great, thanks! Here's the full test.
|