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

Unified Diff: ios/testing/earl_grey/matchers.h

Issue 2275303004: Context menu egtests, plus related utilities. (Closed)
Patch Set: Reviewable. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: ios/testing/earl_grey/matchers.h
diff --git a/ios/testing/earl_grey/matchers.h b/ios/testing/earl_grey/matchers.h
new file mode 100644
index 0000000000000000000000000000000000000000..64b5fc7c92808b977a6ba397ba5f3ca4402e778e
--- /dev/null
+++ b/ios/testing/earl_grey/matchers.h
@@ -0,0 +1,22 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_TESTING_EARL_GREY_MATCHERS_H_
+#define IOS_TESTING_EARL_GREY_MATCHERS_H_
+
+#import <Foundation/Foundation.h>
+
+#import <EarlGrey/EarlGrey.h>
+
+namespace testing {
+
+// Matcher for context menu item containing |text|.
+id<GREYMatcher> contextMenuItemContainingText(NSString* text);
Eugene But (OOO till 7-30) 2016/08/30 18:11:04 The name suggests that |text| can be a substring o
marq (ping after 24h) 2016/08/31 13:07:57 Done.
+
+// Matcher for a UI element to tap to dismiss the the context menu.
Eugene But (OOO till 7-30) 2016/08/30 18:11:04 Maybe document the difference between iPhone and i
marq (ping after 24h) 2016/08/31 13:07:57 Done.
+id<GREYMatcher> elementToDismissContextMenu();
+
+} // namespace testing
+
+#endif // IOS_TESTING_EARL_GREY_MATCHERS_H_

Powered by Google App Engine
This is Rietveld 408576698