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

Side by Side Diff: ios/chrome/test/earl_grey/chrome_matchers.h

Issue 2784943002: Remove matcher to wait for static HTML view. (Closed)
Patch Set: typo Created 3 years, 8 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 unified diff | Download patch
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_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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698