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

Side by Side Diff: ios/testing/earl_grey/matchers.h

Issue 2275303004: Context menu egtests, plus related utilities. (Closed)
Patch Set: Fewer References. Created 4 years, 3 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/testing/earl_grey/BUILD.gn ('k') | ios/testing/earl_grey/matchers.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ios/testing/earl_grey/BUILD.gn ('k') | ios/testing/earl_grey/matchers.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698