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_ |