Bug 220074

Summary: [iOS] add a way to simulate mouse interactions for LayoutTests
Product: WebKit Reporter: Devin Rousso <hi>
Component: Tools / TestsAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: ap, jbedard, thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=220072

Description Devin Rousso 2020-12-21 15:23:43 PST
something similar to `UIController.prototype.singleTapAtPointWithModifiers` or maybe something on `EventSender
Comment 1 Radar WebKit Bug Importer 2020-12-28 15:24:15 PST
<rdar://problem/72710881>
Comment 2 Tim Horton 2020-12-28 16:45:05 PST
(In an ideal world, we’d just make eventSender mouseDown/up/etc. work on iOS, I think.)
Comment 3 Wenson Hsieh 2020-12-28 16:48:00 PST
(In reply to Tim Horton from comment #2)
> (In an ideal world, we’d just make eventSender mouseDown/up/etc. work on
> iOS, I think.)

This has the advantage of allowing us to make existing tests work, but I think in the longer term, UIScriptController offers more flexibility due to its non-blocking nature.

I think what we could do to get the best of both worlds is implement async helpers on UIScriptController, and then implement the synchronous EventSender functionality for iOS on top of the async version.