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

Side by Side Diff: ios/web/public/test/earl_grey/web_view_matchers.h

Issue 2546193002: [ios] Matcher for a generic interstitial page. (Closed)
Patch Set: Self review Created 4 years 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 unified diff | Download patch
« no previous file with comments | « no previous file | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_ 5 #ifndef IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_
6 #define IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_ 6 #define IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <EarlGrey/EarlGrey.h> 10 #import <EarlGrey/EarlGrey.h>
(...skipping 19 matching lines...) Expand all
30 id<GREYMatcher> webViewContainingBlockedImage(std::string image_id, 30 id<GREYMatcher> webViewContainingBlockedImage(std::string image_id,
31 CGSize expected_size, 31 CGSize expected_size,
32 WebState* web_state); 32 WebState* web_state);
33 33
34 // Matcher for WKWebView containing an html element which matches |selector|. 34 // Matcher for WKWebView containing an html element which matches |selector|.
35 id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state); 35 id<GREYMatcher> webViewCssSelector(std::string selector, WebState* web_state);
36 36
37 // Matcher for WKWebView's scroll view. 37 // Matcher for WKWebView's scroll view.
38 id<GREYMatcher> webViewScrollView(WebState* web_state); 38 id<GREYMatcher> webViewScrollView(WebState* web_state);
39 39
40 // Matcher for interstitial page containing |text|. 40 // Matcher for an interstitial page. Does not wait if the page is not displayed.
41 id<GREYMatcher> interstitial(WebState* web_state);
42
43 // Matcher for interstitial page containing |text|. Waits until the text is
44 // displayed or timed out.
41 id<GREYMatcher> interstitialContainingText(NSString* text, WebState* web_state); 45 id<GREYMatcher> interstitialContainingText(NSString* text, WebState* web_state);
42 46
43 } // namespace web 47 } // namespace web
44 48
45 #endif // IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_ 49 #endif // IOS_WEB_PUBLIC_TEST_EARL_GREY_WEB_VIEW_MATCHERS_H_
OLDNEW
« no previous file with comments | « no previous file | ios/web/public/test/earl_grey/web_view_matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698