WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
4963
Would like to simulate human interaction with webview
https://bugs.webkit.org/show_bug.cgi?id=4963
Summary
Would like to simulate human interaction with webview
Duncan Wilcox
Reported
2005-09-13 01:29:20 PDT
The attached patch adds a Javascript interface for "injecting" mouse events into a webview, that lets us regression test some of the code paths in WebHTMLView.m. Implemented via Javascript as per Maciej's suggestion, so that events are fed in different run loops. Supplied test cases currently test a double click becoming a word selection, and a drag becoming a selection.
Attachments
patch
(14.52 KB, patch)
2005-09-13 01:30 PDT
,
Duncan Wilcox
mjs
: review-
Details
Formatted Diff
Diff
patch
(16.17 KB, patch)
2005-09-22 02:20 PDT
,
Duncan Wilcox
mjs
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Duncan Wilcox
Comment 1
2005-09-13 01:30:41 PDT
Created
attachment 3886
[details]
patch
Maciej Stachowiak
Comment 2
2005-09-13 02:56:29 PDT
I like the idea behind this patch. Duncan and I discussed some possible naming alternatives on IRC. Instead of: eventInjectController.injectMouseDown() perhaps something like: eventController.mouseDown() eventInjector.mouseDown() eventSource.mouseDown() syntheticEventSource.mouseDown() layoutTestController.eventSource.mouseDown()
Maciej Stachowiak
Comment 3
2005-09-21 00:52:58 PDT
Other than the name issue, the patch looks fine to me. marking r- so Duncan can reconsider the name.
Duncan Wilcox
Comment 4
2005-09-22 02:20:31 PDT
Created
attachment 4000
[details]
patch Renamed to eventSender.mouseDown and similar.
Maciej Stachowiak
Comment 5
2005-09-23 18:28:03 PDT
Comment on
attachment 4000
[details]
patch Looks great to me. r=me Future extensions that might be useful would include keyboard events and the ability to click other buttons besides the main one (and also modified clicks).
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