| 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_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ |
| 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_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 // Matcher for element with accessibility label corresponding to |label| and | 30 // Matcher for element with accessibility label corresponding to |label| and |
| 31 // accessibility trait UIAccessibilityTraitStaticText. | 31 // accessibility trait UIAccessibilityTraitStaticText. |
| 32 id<GREYMatcher> StaticTextWithAccessibilityLabel(NSString* label); | 32 id<GREYMatcher> StaticTextWithAccessibilityLabel(NSString* label); |
| 33 | 33 |
| 34 // Returns matcher for webview containing |text|. | 34 // Returns matcher for webview containing |text|. |
| 35 id<GREYMatcher> WebViewContainingText(std::string text); | 35 id<GREYMatcher> WebViewContainingText(std::string text); |
| 36 | 36 |
| 37 // Returns matcher for webview not containing |text|. | 37 // Returns matcher for webview not containing |text|. |
| 38 id<GREYMatcher> WebViewNotContainingText(std::string text); | 38 id<GREYMatcher> WebViewNotContainingText(std::string text); |
| 39 | 39 |
| 40 // Returns matcher for a StaticHtmlViewController containing |text|. | |
| 41 id<GREYMatcher> StaticHtmlViewContainingText(NSString* text); | |
| 42 | |
| 43 // Returns matcher for WKWebView containing a blocked |image_id|. When blocked, | 40 // Returns matcher for WKWebView containing a blocked |image_id|. When blocked, |
| 44 // the image element will be smaller than actual image. | 41 // the image element will be smaller than actual image. |
| 45 id<GREYMatcher> WebViewContainingBlockedImage(std::string image_id); | 42 id<GREYMatcher> WebViewContainingBlockedImage(std::string image_id); |
| 46 | 43 |
| 47 // Returns matcher for WKWebView containing loaded image with |image_id|. When | 44 // Returns matcher for WKWebView containing loaded image with |image_id|. When |
| 48 // loaded, the image element will have the same size as actual image. | 45 // loaded, the image element will have the same size as actual image. |
| 49 id<GREYMatcher> WebViewContainingLoadedImage(std::string image_id); | 46 id<GREYMatcher> WebViewContainingLoadedImage(std::string image_id); |
| 50 | 47 |
| 51 // Returns matcher for a cancel button. | 48 // Returns matcher for a cancel button. |
| 52 id<GREYMatcher> CancelButton(); | 49 id<GREYMatcher> CancelButton(); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Matcher for the Open in New Tab option in the context menu when long pressing | 88 // Matcher for the Open in New Tab option in the context menu when long pressing |
| 92 // a link. | 89 // a link. |
| 93 id<GREYMatcher> OpenLinkInNewTabButton(); | 90 id<GREYMatcher> OpenLinkInNewTabButton(); |
| 94 | 91 |
| 95 // Matcher for the done button on the navigation bar. | 92 // Matcher for the done button on the navigation bar. |
| 96 id<GREYMatcher> NavigationBarDoneButton(); | 93 id<GREYMatcher> NavigationBarDoneButton(); |
| 97 | 94 |
| 98 } // namespace chrome_test_util | 95 } // namespace chrome_test_util |
| 99 | 96 |
| 100 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ | 97 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_MATCHERS_H_ |
| OLD | NEW |