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

Side by Side Diff: ios/web/shell/test/earl_grey/shell_matchers.h

Issue 1961063002: Add web shell matcher for address field. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 #import <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 6
7 namespace web { 7 namespace web {
8 8
9 // Shorthand for GREYMatchers::matcherForWebViewContainingText. 9 // Shorthand for GREYMatchers::matcherForWebViewContainingText.
10 id<GREYMatcher> webViewContainingText(NSString* text); 10 id<GREYMatcher> webViewContainingText(NSString* text);
11 11
12 // Shorthand for GREYMatchers::matcherForAddressFieldTextEqualTo.
13 id<GREYMatcher> addressFieldText(NSString* text);
14
12 // Shorthand for GREYMatchers::matcherForBackButton. 15 // Shorthand for GREYMatchers::matcherForBackButton.
13 id<GREYMatcher> backButton(); 16 id<GREYMatcher> backButton();
14 17
15 // Shorthand for GREYMatchers::matcherForForwardButton. 18 // Shorthand for GREYMatchers::matcherForForwardButton.
16 id<GREYMatcher> forwardButton(); 19 id<GREYMatcher> forwardButton();
17 20
18 // Shorthand for GREYMatchers::matcherForAddressField. 21 // Shorthand for GREYMatchers::matcherForAddressField.
19 id<GREYMatcher> addressField(); 22 id<GREYMatcher> addressField();
20 23
21 } // namespace web 24 } // namespace web
22 25
23 @interface GREYMatchers (WebShellAdditions) 26 @interface GREYMatchers (WebShellAdditions)
24 27
25 // Matcher for WKWebView containing |text|. 28 // Matcher for WKWebView containing |text|.
26 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text; 29 + (id<GREYMatcher>)matcherForWebViewContainingText:(NSString*)text;
27 30
31 // Matcher for web shell address field text property equal to |text|.
32 + (id<GREYMatcher>)matcherForAddressFieldTextEqualTo:(NSString*)text;
Eugene But (OOO till 7-30) 2016/05/09 15:59:08 s/matcherForAddressFieldTextEqualTo/matcherForAddr
baxley 2016/05/09 17:11:43 I changed to matcherForAddressFieldEqualToText to
33
28 // Matcher for back button in web shell. 34 // Matcher for back button in web shell.
29 + (id<GREYMatcher>)matcherForWebShellBackButton; 35 + (id<GREYMatcher>)matcherForWebShellBackButton;
30 36
31 // Matcher for forward button in web shell. 37 // Matcher for forward button in web shell.
32 + (id<GREYMatcher>)matcherForWebShellForwardButton; 38 + (id<GREYMatcher>)matcherForWebShellForwardButton;
33 39
34 // Matcher for address field in web shell. 40 // Matcher for address field in web shell.
35 + (id<GREYMatcher>)matcherForWebShellAddressField; 41 + (id<GREYMatcher>)matcherForWebShellAddressField;
36 42
37 @end 43 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698