Bug 95829

Summary: [Tests] We should have mouse events test for multiple fields time input UI
Product: WebKit Reporter: yosin
Component: Tools / TestsAssignee: yosin
Status: RESOLVED FIXED    
Severity: Normal CC: tkent
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch 1
none
Patch 2
none
Patch 3 none

Description yosin 2012-09-05 01:22:16 PDT
There are no test cases for mouse events on multiple fields time input UI.
Comment 1 yosin 2012-09-05 01:51:49 PDT
Created attachment 162187 [details]
Patch 1
Comment 2 yosin 2012-09-05 01:52:18 PDT
Comment on attachment 162187 [details]
Patch 1

Could you review this patch?
Thanks in advance.
Comment 3 Kent Tamura 2012-09-05 02:02:18 PDT
Comment on attachment 162187 [details]
Patch 1

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

> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-mouse-events.html:54
> +mouseMoveTo(40, 15);

This is really font-dependent.
Please specify font-family:ahem; to avoid platform-dependency as possible.
Comment 4 yosin 2012-09-05 03:05:21 PDT
Created attachment 162201 [details]
Patch 2
Comment 5 yosin 2012-09-05 03:06:20 PDT
Comment on attachment 162201 [details]
Patch 2

Could you review this patch?
Thanks in advance.

= Changes since the last review =
* Set font-family of "time" input element to "ahem".
Comment 6 Kent Tamura 2012-09-05 03:16:09 PDT
Comment on attachment 162201 [details]
Patch 2

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

> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-mouse-events.html:21
> +var input = document.getElementById("input");
> +input.setAttribute("style", "font-family:ahem");

Why don't you specify it in HTML?  <input id=input type=time style="font-family:ahem">

Also, you should specify font-size too because the default size is platform-dependent.
Comment 7 yosin 2012-09-05 03:21:35 PDT
Created attachment 162204 [details]
Patch 3
Comment 8 yosin 2012-09-05 03:22:46 PDT
Comment on attachment 162204 [details]
Patch 3

Could you review this patch?
Thanks in advance.

= Changes since the last review =
* Set font-family and font-size in HTML for input type "time"
Comment 9 Kent Tamura 2012-09-05 03:25:34 PDT
Comment on attachment 162204 [details]
Patch 3

ok.
Please watch buildbot status carefully after landing this.
Comment 10 yosin 2012-09-05 18:00:58 PDT
Comment on attachment 162204 [details]
Patch 3

Clearing flags on attachment: 162204

Committed r127668: <http://trac.webkit.org/changeset/127668>
Comment 11 yosin 2012-09-05 18:01:03 PDT
All reviewed patches have been landed.  Closing bug.