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

Unified Diff: ios/web/public/test/earl_grey/web_view_matchers.h

Issue 2275843003: Add support for webViewContainingBlockedImage. (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/earl_grey/web_view_matchers.h
diff --git a/ios/web/public/test/earl_grey/web_view_matchers.h b/ios/web/public/test/earl_grey/web_view_matchers.h
index 756ce32b3c24e25a4e8a35f0906abdd185aff10b..70e05e5bedf847df31eb019942f08f6bdf21def7 100644
--- a/ios/web/public/test/earl_grey/web_view_matchers.h
+++ b/ios/web/public/test/earl_grey/web_view_matchers.h
@@ -16,6 +16,12 @@ id<GREYMatcher> webViewInWebState(WebState* web_state);
// Matcher for WKWebView containing |text|.
id<GREYMatcher> webViewContainingText(std::string text, WebState* web_state);
+// Matcher for WKWebView containing a blocked |image_id|. When blocked, the
+// image will be smaller than |expected_size|.
+id<GREYMatcher> webViewContainingBlockedImage(std::string image_id,
+ CGSize expected_size,
+ WebState* web_state);
+
// Matcher for WKWebView containing an html element which matches |selector|.
id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state);

Powered by Google App Engine
This is Rietveld 408576698