WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
172614
[iOS] Add TestWebKitAPI infrastructure to simulate tap/click
https://bugs.webkit.org/show_bug.cgi?id=172614
Summary
[iOS] Add TestWebKitAPI infrastructure to simulate tap/click
Daniel Bates
Reported
2017-05-25 15:04:32 PDT
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
Comment 1
2017-05-25 15:06:21 PDT
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
Comment 2
2017-05-27 20:18:41 PDT
Is that really suitable for an API test, or should it be WebKitTestRunner functionality?
Radar WebKit Bug Importer
Comment 3
2019-03-08 18:00:51 PST
<
rdar://problem/48733092
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug