Bug 99537

Summary: Hide popup while transitioning from the suggestion picker to the calendar 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   
Attachments:
Description Flags
Patch
none
Patch
none
Patch none

Description Keishi Hattori 2012-10-16 21:19:25 PDT
Hide popup while transitioning from the suggestion picker to the calendar picker
Comment 1 Keishi Hattori 2012-10-16 21:33:07 PDT
Created attachment 169083 [details]
Patch
Comment 2 Kent Tamura 2012-10-16 21:45:35 PDT
Comment on attachment 169083 [details]
Patch

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

> LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-step.html:8
> -    popupWindow.removeEventListener('resize', finishTest);
> +    popupWindow.removeEventListener('didOpenPicker', finishTest);

Would you apply a technique same as http://trac.webkit.org/changeset/131404 as possible before this change please?
Comment 3 Keishi Hattori 2012-10-17 02:03:42 PDT
Created attachment 169128 [details]
Patch
Comment 4 Kent Tamura 2012-10-17 02:30:44 PDT
Comment on attachment 169128 [details]
Patch

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

> LayoutTests/ChangeLog:9
> +        Use didOpenPicker event instead of resize event. Also refactoring
> +        tests to share the same structure.

Would you separate it into two patches please?

> LayoutTests/ChangeLog:37
> +        * platform/chromium/fast/forms/color/color-suggestion-picker-common.js: Added.

We usually put such helper library into resources/ subdirectory.

> LayoutTests/platform/chromium/TestExpectations:3904
> +webkit.org/b/99291 platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance.html [ Pass ImageOnlyFailure ]
> +webkit.org/b/99291 platform/chromium/fast/forms/calendar-picker/calendar-picker-appearance-step.html [ Pass ImageOnlyFailure ]

This file already has lines for them.

> LayoutTests/platform/chromium/TestExpectations:3910
> +webkit.org/b/99291 platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-appearance.html [ Pass ImageOnlyFailure ]
> +webkit.org/b/99291 platform/chromium/fast/forms/suggestion-picker/date-suggestion-picker-appearance-with-scroll-bar.html [ Pass ImageOnlyFailure ]
> +webkit.org/b/99291 platform/chromium/fast/forms/suggestion-picker/time-suggestion-picker-appearance.html [ Pass ImageOnlyFailure ]
> +webkit.org/b/99291 platform/chromium/fast/forms/suggestion-picker/time-suggestion-picker-appearance-with-scroll-bar.html [ Pass ImageOnlyFailure ]

Ditto.

> LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-key-operations-expected.txt:53
> -PASS focusedElement() is ".today-button[value=<<CalendarToday>>]"
> -PASS focusedElement() is ".clear-button[value=<<CalendarClear>>]"
> +FAIL focusedElement() should be .today-button[value=Today]. Was .today-button[value=<<CalendarToday>>].
> +FAIL focusedElement() should be .clear-button[value=Clear]. Was .clear-button[value=<<CalendarClear>>].
>  PASS focusedElement() is ".year-month-button[value=<<]"
> -PASS focusedElement() is ".clear-button[value=<<CalendarClear>>]"
> +FAIL focusedElement() should be .clear-button[value=Clear]. Was .clear-button[value=<<CalendarClear>>].

Is this an expected change?

> LayoutTests/platform/chromium/fast/forms/suggestion-picker/time-suggestion-picker-key-operations.html:90
> -    popupWindow.addEventListener("resize", test1, false);
> +    popupWindow.addEventListener("didOpenPicker", test1, false);

Don't you use the callback argument of openPicker()?

> LayoutTests/platform/chromium/fast/forms/suggestion-picker/time-suggestion-picker-key-operations.html:145
>      openPicker(document.getElementById('time'));
> -    popupWindow.addEventListener("resize", test2, false);
> +    popupWindow.addEventListener("didOpenPicker", test2, false);

ditto.
Comment 5 Keishi Hattori 2012-10-22 01:57:19 PDT
Created attachment 169853 [details]
Patch
Comment 6 Kent Tamura 2012-10-22 02:14:48 PDT
Comment on attachment 169853 [details]
Patch

ok
Comment 7 WebKit Review Bot 2012-10-25 18:55:55 PDT
Comment on attachment 169853 [details]
Patch

Clearing flags on attachment: 169853

Committed r132553: <http://trac.webkit.org/changeset/132553>
Comment 8 WebKit Review Bot 2012-10-25 18:55:58 PDT
All reviewed patches have been landed.  Closing bug.