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

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

Issue 2617393003: [ios] EarlGrey tests for HTTP Authentication. (Closed)
Patch Set: Actually disabled tests on iPad Created 3 years, 11 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 "ios/chrome/test/earl_grey/chrome_matchers.h" 5 #import "ios/chrome/test/earl_grey/chrome_matchers.h"
6 6
7 #import <OCHamcrest/OCHamcrest.h> 7 #import <OCHamcrest/OCHamcrest.h>
8 8
9 #import <WebKit/WebKit.h> 9 #import <WebKit/WebKit.h>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 }; 157 };
158 158
159 return grey_allOf( 159 return grey_allOf(
160 webViewWithNavDelegateOfClass([StaticHtmlViewController class]), 160 webViewWithNavDelegateOfClass([StaticHtmlViewController class]),
161 [[[GREYElementMatcherBlock alloc] initWithMatchesBlock:matches 161 [[[GREYElementMatcherBlock alloc] initWithMatchesBlock:matches
162 descriptionBlock:describe] 162 descriptionBlock:describe]
163 autorelease], 163 autorelease],
164 nil); 164 nil);
165 } 165 }
166 166
167 id<GREYMatcher> cancelButton() {
168 return buttonWithAccessibilityLabelId(IDS_CANCEL);
169 }
170
167 id<GREYMatcher> forwardButton() { 171 id<GREYMatcher> forwardButton() {
168 return buttonWithAccessibilityLabelId(IDS_ACCNAME_FORWARD); 172 return buttonWithAccessibilityLabelId(IDS_ACCNAME_FORWARD);
169 } 173 }
170 174
171 id<GREYMatcher> backButton() { 175 id<GREYMatcher> backButton() {
172 return buttonWithAccessibilityLabelId(IDS_ACCNAME_BACK); 176 return buttonWithAccessibilityLabelId(IDS_ACCNAME_BACK);
173 } 177 }
174 178
175 id<GREYMatcher> reloadButton() { 179 id<GREYMatcher> reloadButton() {
176 return buttonWithAccessibilityLabelId(IDS_IOS_ACCNAME_RELOAD); 180 return buttonWithAccessibilityLabelId(IDS_IOS_ACCNAME_RELOAD);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } 212 }
209 213
210 id<GREYMatcher> collectionViewSwitchCell(NSString* accessibilityIdentifier, 214 id<GREYMatcher> collectionViewSwitchCell(NSString* accessibilityIdentifier,
211 BOOL isOn) { 215 BOOL isOn) {
212 return grey_allOf(grey_accessibilityID(accessibilityIdentifier), 216 return grey_allOf(grey_accessibilityID(accessibilityIdentifier),
213 collectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(), 217 collectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(),
214 nil); 218 nil);
215 } 219 }
216 220
217 } // namespace chrome_test_util 221 } // namespace chrome_test_util
OLDNEW
« ios/chrome/browser/web/http_auth_egtest.mm ('K') | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698