DescriptionThis CL implements basic context menu egtests that run against the web shell, along
with a number of needed utility functions.
Apologies for the size of this CL; some of the utility implementations ended up being
fairly involved.
This CL:
(1) moves ExecuteJavascript out of web_view_matchers to be a public utility function
in web_view_interaction_test_util.
(2) Add web_view_actions and shell_actions for new action providers.
(3) Adds ios/testing/earl_grey/matchers for non-web-specific matchers.
(4) Adds a "verified action" wrapper that will inject a mousedown event handler and
a script callback handler to watch for it, so that UIKit actions that ought to trigger DOM
events can be verified.
(5) Adds a BoundingRectOfElementWithId() utility to find where (in webview bounds
coordinates) an element is.
(6) Adds a method that long-presses a webview element to trigger (or not) a context
menu.
(7) Adds matchers for finding elements in context menus, and finding an element to
tap that will dismiss the context menu. The latter encapsulates the differences between
iPad and iPhone.
(8) Adds header guards to shell_matchers.h and web_view_matchers.h (!)
(9) Changes a bunch of std::string params for utility methods to be references.
(10) (finally) Implements the upstreamable context menu tests, adding a test for simply
triggering the context menu.
BUG=
Committed: https://crrev.com/c73c7bef14788c1bce67f5ebe896d55108175c5b
Cr-Commit-Position: refs/heads/master@{#415670}
Patch Set 1 #Patch Set 2 : Reviewable. #
Total comments: 63
Patch Set 3 : Review feedback plus some fixes and tweaks. #
Total comments: 4
Patch Set 4 : Fewer References. #Messages
Total messages: 20 (11 generated)
|