Bug 49302 - Add a test for form submission by <input type=image>
Summary: Add a test for form submission by <input type=image>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Kent Tamura
URL:
Keywords:
Depends on:
Blocks: 48317
  Show dependency treegraph
 
Reported: 2010-11-09 23:41 PST by Kent Tamura
Modified: 2010-11-11 00:27 PST (History)
2 users (show)

See Also:


Attachments
Patch (5.68 KB, patch)
2010-11-09 23:42 PST, Kent Tamura
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kent Tamura 2010-11-09 23:41:05 PST
Add a test for form submission by <input type=image>

We have no tests about it!
Comment 1 Kent Tamura 2010-11-09 23:42:42 PST
Created attachment 73461 [details]
Patch
Comment 2 Shinichiro Hamaji 2010-11-10 00:12:06 PST
Comment on attachment 73461 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=73461&action=review

Adding more tests is nice :) I've put two minor comments, please apply them if you like.

> LayoutTests/fast/forms/input-image-submit.html:37
> +        gc();

I think the reason why we need to run gc here isn't so clear. Could you write a few comments?

> LayoutTests/fast/forms/input-image-submit.html:72
> +            testFailed('Normal submission failed: ' + query);

I'd add a function which calls both testFailed and notifyDone.
Comment 3 Kent Tamura 2010-11-11 00:27:29 PST
Thanks for reviewing.
I have committed the patch with the following changes as http://trac.webkit.org/changeset/71799

(In reply to comment #2)
> > LayoutTests/fast/forms/input-image-submit.html:37
> > +        gc();
> 
> I think the reason why we need to run gc here isn't so clear. Could you write a few comments?

I added a comment.

> > LayoutTests/fast/forms/input-image-submit.html:72
> > +            testFailed('Normal submission failed: ' + query);
> 
> I'd add a function which calls both testFailed and notifyDone.

I made a function for it.