Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: ios/web/public/test/web_view_interaction_test_util.h

Issue 2268863004: Add a return value to TapWebViewElementWithId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/web/public/test/web_view_interaction_test_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7004ec033c06dfd393bdb2d1e7778a1768f13d66 100644
--- a/ios/web/public/test/web_view_interaction_test_util.h
+++ b/ios/web/public/test/web_view_interaction_test_util.h
@@ -9,18 +9,15 @@
namespace web {
namespace test {
-enum ElementAction { CLICK, FOCUS };
-
-// 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,
- const std::string& element_id,
- ElementAction action);
+// Returns whether the element with |element_id| in the passed |web_state| has
+// been focused using a JavaScript focus() event.
+bool FocusWebViewElementWithId(web::WebState* web_state,
+ const std::string& element_id);
} // namespace test
} // namespace web
« no previous file with comments | « no previous file | ios/web/public/test/web_view_interaction_test_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698