Bug 172614
| Summary: | [iOS] Add TestWebKitAPI infrastructure to simulate tap/click | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Daniel Bates <dbates> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ap, jiewen_tan, lforschler, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | iPhone / iPad | ||
| OS: | iOS 10 | ||
Daniel Bates
We should add infrastructure for iOS to simulate a tap/click in a TestWebKitAPI unit test. At the time of writing such infrastructure exists for Mac: -[TestWKWebView sendClicksAtPoint:numberOfClicks:] and PlatformWebView::simulateButtonClick() for use when writing tests using the WebKit2 C API and Modern WebKit2 Cocoa API, respectively.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Daniel Bates
For completeness, I noticed the lack of such infrastructure for iOS when writing unit tests for the runBeforeUnloadConfirmPanel delegate callback in the patch for bug #172603 as WebCore will only query the embedding client to show a beforeunload confirm panel if the user interacted with the page being unloaded.
Alexey Proskuryakov
Is that really suitable for an API test, or should it be WebKitTestRunner functionality?
Radar WebKit Bug Importer
<rdar://problem/48733092>