Bug 312809
| Summary: | [Swift Testing] Add Swift mouse-event helpers for TestWKWebView | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | zak ridouh <zakr> |
| Component: | Tools / Tests | Assignee: | zak ridouh <zakr> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
zak ridouh
Add a @MainActor extension on TestWKWebView exposing simulate*
mouse helpers (mouseDown, mouseUp, mouseMove, mouseDrag, click,
clicks, rightClick) plus an async waitForPendingMouseEvents()
that wraps _doAfterProcessingAllPendingMouseEvents: with
withCheckedContinuation. Unblocks porting AppKit-heavy
SiteIsolation tests to Swift Testing without blocking the main
thread on Util::run.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/175191513>
zak ridouh
Pull request: https://github.com/WebKit/WebKit/pull/63151
EWS
Committed 312960@main (695318725b7d): <https://commits.webkit.org/312960@main>
Reviewed commits have been landed. Closing PR #63151 and removing active labels.