Currently the text interaction tests in RequestTextInputContext.mm look for a zoom scale change as an indirect way to know whether or not the web view zoomed to reveal the focused element. However the way the tests do so by changing the zoom scale without ensuring the editable element is still semi-occluded is racy. It works out so long as the call to focus the editable element (aka -focusTextInputContext) is processed by the web process BEFORE it receives a visible content rect update (as a result of the zoomScale change). Instead write these tests to check if the scroll view actually scrolled or not.
Created attachment 397632 [details] Patch
Comment on attachment 397632 [details] Patch Clearing flags on attachment: 397632 Committed r260756: <https://trac.webkit.org/changeset/260756>
All reviewed patches have been landed. Closing bug.
<rdar://problem/62453615>