OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_TESTING_EARL_GREY_MATCHERS_H_ |
| 6 #define IOS_TESTING_EARL_GREY_MATCHERS_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #import <EarlGrey/EarlGrey.h> |
| 11 |
| 12 namespace testing { |
| 13 |
| 14 // Matcher for context menu item whose text is exactly |text|. |
| 15 id<GREYMatcher> contextMenuItemWithText(NSString* text); |
| 16 |
| 17 // Matcher for a UI element to tap to dismiss the the context menu, where |
| 18 // |cancel_text| is the localized text used for the action sheet cancel control. |
| 19 // On phones, where the context menu is an action sheet, this will be a matcher |
| 20 // for the menu item with |cancel_text| as its label. |
| 21 // On tablets, where the context menu is a popover, this will be a matcher for |
| 22 // some element outside of the popover. |
| 23 id<GREYMatcher> elementToDismissContextMenu(NSString* cancel_text); |
| 24 |
| 25 } // namespace testing |
| 26 |
| 27 #endif // IOS_TESTING_EARL_GREY_MATCHERS_H_ |
OLD | NEW |