Chromium Code Reviews| 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 #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 Loading... | |
| 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 |
| OLD | NEW |