Bug 198799 - [iOS] Adjust tests platform/ipad/fast/forms/{select-form-run-twice, unfocus-inside-fixed-hittest}.html following r243808
Summary: [iOS] Adjust tests platform/ipad/fast/forms/{select-form-run-twice, unfocus-i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: iPhone / iPad iOS 12
: P2 Normal
Assignee: Daniel Bates
URL:
Keywords: InRadar, PlatformOnly
Depends on:
Blocks:
 
Reported: 2019-06-12 13:06 PDT by Daniel Bates
Modified: 2019-06-12 16:08 PDT (History)
4 users (show)

See Also:


Attachments
Patch (2.97 KB, patch)
2019-06-12 13:09 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff
To land (2.84 KB, patch)
2019-06-12 16:07 PDT, Daniel Bates
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2019-06-12 13:06:23 PDT
Following r243808 (bug #196272) we no longer defocus a <select> on iPad when its popover is dismissed as a result of picking a value for it. This is to make behavior of <select> on iPad like the Mac. We need to update the tests platform/ipad/fast/forms/{select-form-run-twice, unfocus-inside-fixed-hittest}.html to not expect the defocusing of the <select>, which they observe by way of registering for a uiController.didEndFormControlInteractionCallback callback.
Comment 1 Daniel Bates 2019-06-12 13:06:48 PDT
<rdar://problem/50181023>
Comment 2 Daniel Bates 2019-06-12 13:09:16 PDT
Created attachment 371982 [details]
Patch
Comment 3 Brent Fulgham 2019-06-12 13:38:37 PDT
Comment on attachment 371982 [details]
Patch

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

> LayoutTests/platform/ipad/fast/forms/select-form-run-twice.html:56
> +                        uiController.uiScriptComplete()

Nit: Semicolon at end of statement.
Comment 4 Daniel Bates 2019-06-12 16:06:05 PDT
(In reply to Brent Fulgham from comment #3)
> Comment on attachment 371982 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=371982&action=review
> 
> > LayoutTests/platform/ipad/fast/forms/select-form-run-twice.html:56
> > +                        uiController.uiScriptComplete()
> 
> Nit: Semicolon at end of statement.

It's JavaScript. Automatic semicolon insertion applies 😀 <-- seriously, this is language feature. I'll add the semicolon just because I like the aesthetics.
Comment 5 Daniel Bates 2019-06-12 16:07:05 PDT
Created attachment 371996 [details]
To land
Comment 6 Daniel Bates 2019-06-12 16:08:02 PDT
Committed r246386: <https://trac.webkit.org/changeset/246386>