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

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: 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
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 ba7fc47e02be71dcf8e36779a5700e8733ad336c..bbc92cefa99c71d519f2ebf2ca4e0c451bc9e12b 100644
--- a/ios/web/public/test/web_view_interaction_test_util.h
+++ b/ios/web/public/test/web_view_interaction_test_util.h
@@ -9,10 +9,10 @@
namespace web {
namespace test {
-// 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);
} // namespace test
-} // namespace web
+} // namespace web

Powered by Google App Engine
This is Rietveld 408576698