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

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

Issue 2733973002: Create shared matcher for navigation bar done button. (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ios/chrome/test/earl_grey/chrome_matchers.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 BOOL isOn) { 224 BOOL isOn) {
225 return grey_allOf(grey_accessibilityID(accessibilityIdentifier), 225 return grey_allOf(grey_accessibilityID(accessibilityIdentifier),
226 CollectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(), 226 CollectionViewSwitchIsOn(isOn), grey_sufficientlyVisible(),
227 nil); 227 nil);
228 } 228 }
229 229
230 id<GREYMatcher> OpenLinkInNewTabMenuItem() { 230 id<GREYMatcher> OpenLinkInNewTabMenuItem() {
231 return ButtonWithAccessibilityLabelId(IDS_IOS_CONTENT_CONTEXT_OPENLINKNEWTAB); 231 return ButtonWithAccessibilityLabelId(IDS_IOS_CONTENT_CONTEXT_OPENLINKNEWTAB);
232 } 232 }
233 233
234 id<GREYMatcher> NavigationBarDoneButton() {
235 return grey_allOf(
236 ButtonWithAccessibilityLabelId(IDS_IOS_NAVIGATION_BAR_DONE_BUTTON),
237 grey_sufficientlyVisible(), nil);
Eugene But (OOO till 7-30) 2017/03/07 02:56:41 I just noticed that some matchers have |grey_suffi
baxley 2017/03/07 15:28:33 There was one at least one test that needed it, so
Eugene But (OOO till 7-30) 2017/03/07 16:33:31 Thanks! Could you please file a bug to fix other m
238 }
239
234 } // namespace chrome_test_util 240 } // namespace chrome_test_util
OLDNEW
« no previous file with comments | « 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