Bug 220074 - [iOS] add a way to simulate mouse interactions for LayoutTests
Summary: [iOS] add a way to simulate mouse interactions for LayoutTests
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2020-12-21 15:23 PST by Devin Rousso
Modified: 2020-12-28 16:48 PST (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.