Bug 188401

Summary: [iOS] fast/events/ios/contenteditable-autocapitalize.html is a flaky failure
Product: WebKit Reporter: Wenson Hsieh <wenson_hsieh>
Component: Tools / TestsAssignee: Wenson Hsieh <wenson_hsieh>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, bdakin, commit-queue, lforschler, megan_gardner, rniwa, thorton, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Update TestExpectation
rniwa: review+
Patch for landing none

Description Wenson Hsieh 2018-08-07 19:35:42 PDT
<rdar://problem/32542300>
Comment 1 Wenson Hsieh 2018-08-07 20:17:06 PDT
Created attachment 346753 [details]
Patch
Comment 2 Wenson Hsieh 2018-08-07 20:42:29 PDT
Created attachment 346755 [details]
Update TestExpectation
Comment 3 Ryosuke Niwa 2018-08-07 22:22:09 PDT
Comment on attachment 346755 [details]
Update TestExpectation

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

> Tools/WebKitTestRunner/ios/TestControllerIOS.mm:124
> +
> +    runUntil(m_isDoneWaitingForKeyboardToDismiss, m_currentInvocation->shortTimeout());

Does m_isDoneWaitingForKeyboardToDismiss really need to be a member variable? Can't it just be a static variable local to this file instead?
Alternatively, can simply hand off m_isDoneWaitingForKeyboardToDismiss as an observer
so that we don't have to add willHideKeyboard()/didHideKeyboard() to TestController?
Comment 4 Wenson Hsieh 2018-08-08 07:19:15 PDT
(In reply to Ryosuke Niwa from comment #3)
> Comment on attachment 346755 [details]
> Update TestExpectation
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=346755&action=review
> 
> > Tools/WebKitTestRunner/ios/TestControllerIOS.mm:124
> > +
> > +    runUntil(m_isDoneWaitingForKeyboardToDismiss, m_currentInvocation->shortTimeout());
> 
> Does m_isDoneWaitingForKeyboardToDismiss really need to be a member
> variable? Can't it just be a static variable local to this file instead?
> Alternatively, can simply hand off m_isDoneWaitingForKeyboardToDismiss as an
> observer
> so that we don't have to add willHideKeyboard()/didHideKeyboard() to
> TestController?

Ok — made isDoneWaitingForKeyboardToDismiss a static variable, and removed willHideKeyboard()/didHideKeyboard().
Comment 5 Wenson Hsieh 2018-08-08 07:27:21 PDT
Created attachment 346769 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2018-08-08 08:06:45 PDT
Comment on attachment 346769 [details]
Patch for landing

Clearing flags on attachment: 346769

Committed r234691: <https://trac.webkit.org/changeset/234691>