Bug 101556

Summary: Add tests for month picker
Product: WebKit Reporter: Keishi Hattori <keishi>
Component: FormsAssignee: Keishi Hattori <keishi>
Status: RESOLVED FIXED    
Severity: Normal CC: tkent, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 100938    
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Keishi Hattori 2012-11-07 23:46:49 PST
Add tests for month picker
Comment 1 Keishi Hattori 2012-11-09 03:49:17 PST
Created attachment 173259 [details]
Patch
Comment 2 Keishi Hattori 2012-11-11 20:44:31 PST
Created attachment 173544 [details]
Patch
Comment 3 Kent Tamura 2012-11-11 21:10:58 PST
Comment on attachment 173544 [details]
Patch

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

> LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-key-operations.html:80
> +    eventSender.keyDown('\n');
> +    shouldBeNull('document.getElementById("mock-page-popup")');

Unfortunately this doesn't work any more because popup close operation is now asynchronous.
http://trac.webkit.org/changeset/134180

> LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-key-operations.html:102
> +    eventSender.keyDown('\x1B');
> +    shouldBeNull('document.getElementById("mock-page-popup")');

ditto.

> LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-mouse-operations.html:44
> +    clickElement(popupWindow.document.querySelectorAll(".day:not(.week-column)")[6]);
> +    shouldBeNull('document.getElementById("mock-page-popup")');

Ditto.

> LayoutTests/platform/chromium/fast/forms/calendar-picker/month-picker-with-step.html:31
> +    // Close popup
> +    eventSender.keyDown('\x1B');
> +
> +    document.getElementById('month').min = "2011-05";
> +    document.getElementById('month').value = "2012-02";
> +    
> +    // Reopen popup
> +    openPicker(document.getElementById('month'), test2);

ditto.
Comment 4 Keishi Hattori 2012-11-11 23:23:59 PST
Created attachment 173569 [details]
Patch
Comment 5 Kent Tamura 2012-11-12 00:27:43 PST
Comment on attachment 173569 [details]
Patch

looks good
Comment 6 WebKit Review Bot 2012-11-12 04:32:34 PST
Comment on attachment 173569 [details]
Patch

Clearing flags on attachment: 173569

Committed r134209: <http://trac.webkit.org/changeset/134209>
Comment 7 WebKit Review Bot 2012-11-12 04:32:37 PST
All reviewed patches have been landed.  Closing bug.