| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |