Bug 104993 - Hours field of date/time input UI should respect step attribute
Summary: Hours field of date/time input UI should respect step attribute
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Forms (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified All
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 23:09 PST by Kunihiko Sakamoto
Modified: 2012-12-14 01:33 PST (History)
3 users (show)

See Also:


Attachments
Patch (16.61 KB, patch)
2012-12-13 23:29 PST, Kunihiko Sakamoto
no flags Details | Formatted Diff | Diff
Patch 2 (17.82 KB, patch)
2012-12-14 01:00 PST, Kunihiko Sakamoto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kunihiko Sakamoto 2012-12-13 23:09:46 PST
Continued from https://bugs.webkit.org/show_bug.cgi?id=104628 and https://bugs.webkit.org/show_bug.cgi?id=104985.
Make hours fields of multiple-fields UI respect step attribute.
Comment 1 Kunihiko Sakamoto 2012-12-13 23:29:24 PST
Created attachment 179427 [details]
Patch
Comment 2 Kent Tamura 2012-12-14 00:02:06 PST
Comment on attachment 179427 [details]
Patch

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

> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html:160
> +shouldBeEqualToString('test("06:00", 7200, null, null, ["delete", "downArrow"])', '00:00');

In this case, do we have appearance "12:00 am" correctly instead of "00:00 am"?
We can test it by getUserAgentShadowTextContent() defined in fast/forms/resources/common.js.
Comment 3 Kent Tamura 2012-12-14 00:05:44 PST
Comment on attachment 179427 [details]
Patch

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

> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer-expected.txt:111
> +The tests in this block fail on platforms without the lang-attribute-aware-form-control-UI feature.

We know this block will fail on Windows XP.
So, please add the following line to LayoutTests/platform/chromium/TestExpectations

webkit.org/b/104993 [ XP ] fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html [ Failure ]
Comment 4 Kunihiko Sakamoto 2012-12-14 01:00:11 PST
Created attachment 179443 [details]
Patch 2
Comment 5 Kunihiko Sakamoto 2012-12-14 01:01:50 PST
Comment on attachment 179427 [details]
Patch

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

>> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer-expected.txt:111
>> +The tests in this block fail on platforms without the lang-attribute-aware-form-control-UI feature.
> 
> We know this block will fail on Windows XP.
> So, please add the following line to LayoutTests/platform/chromium/TestExpectations
> 
> webkit.org/b/104993 [ XP ] fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html [ Failure ]

Done.

>> LayoutTests/fast/forms/time-multiple-fields/time-multiple-fields-stepup-stepdown-from-renderer.html:160
>> +shouldBeEqualToString('test("06:00", 7200, null, null, ["delete", "downArrow"])', '00:00');
> 
> In this case, do we have appearance "12:00 am" correctly instead of "00:00 am"?
> We can test it by getUserAgentShadowTextContent() defined in fast/forms/resources/common.js.

Added test of shadow text here and 0-23 case.
Comment 6 Kent Tamura 2012-12-14 01:03:33 PST
Comment on attachment 179443 [details]
Patch 2

Looks good.
Comment 7 WebKit Review Bot 2012-12-14 01:33:31 PST
Comment on attachment 179443 [details]
Patch 2

Clearing flags on attachment: 179443

Committed r137733: <http://trac.webkit.org/changeset/137733>
Comment 8 WebKit Review Bot 2012-12-14 01:33:34 PST
All reviewed patches have been landed.  Closing bug.