Index: ios/web/public/test/web_view_interaction_test_util.h |
diff --git a/ios/web/public/test/web_view_interaction_test_util.h b/ios/web/public/test/web_view_interaction_test_util.h |
index 3ec311b8b456364d17129e4331d037cf87061b54..961dc2179d9ff06cf869ab04c090f953e6a26851 100644 |
--- a/ios/web/public/test/web_view_interaction_test_util.h |
+++ b/ios/web/public/test/web_view_interaction_test_util.h |
@@ -11,14 +11,14 @@ namespace test { |
enum ElementAction { CLICK, FOCUS }; |
Eugene But (OOO till 7-30)
2016/08/26 13:19:56
According to Chromium Style Guide these should be
jif-google
2016/08/26 13:30:34
Acknowledged.
gambard
2016/08/26 14:35:52
Done.
|
-// Attempts to tap the element with |element_id| in the passed in |web_state| |
-// using a JavaScript click() event. |
-void TapWebViewElementWithId(web::WebState* web_state, |
+// Returns whether the element with |element_id| in the passed |web_state| has |
+// been tapped using a JavaScript click() event. |
+bool TapWebViewElementWithId(web::WebState* web_state, |
const std::string& element_id); |
-// Attempts to run the Javascript action specified by |action| on |element_id| |
-// in the passed |web_state|. |
-void RunActionOnWebViewElementWithId(web::WebState* web_state, |
+// Returns whether the Javascript action specified by |action| run on |
jif-google
2016/08/26 12:20:48
s/run/ran/
gambard
2016/08/26 14:35:52
Done.
|
+// |element_id| in the passed |web_state|. |
+bool RunActionOnWebViewElementWithId(web::WebState* web_state, |
Eugene But (OOO till 7-30)
2016/08/26 13:19:56
Do you see a potential of adding new actions? If y
jif-google
2016/08/26 13:30:34
And how about removing TapWebViewElementWithId?
baxley
2016/08/26 13:40:05
We're in progress of adding an API that will tap a
gambard
2016/08/26 14:35:52
Done.
Eugene But (OOO till 7-30)
2016/08/26 15:13:28
+1 for using RunActionOnWebViewElementWithId.
We
Eugene But (OOO till 7-30)
2016/08/26 15:13:28
TapWebViewElementWithId seems more clear that RunA
baxley
2016/08/26 15:43:26
As discussed offline... chrome-urls don't have IDs
|
const std::string& element_id, |
ElementAction action); |