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

Side by Side Diff: ios/web/shell/test/earl_grey/shell_actions.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
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_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_
6 #define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_
7
8 #include <string>
9
10 #import <EarlGrey/EarlGrey.h>
11
12 namespace web {
13
14 // Action to longpress on element |element_id| in the shell's webview.
15 // If |triggers_context_menu| is true, this gesture is expected to
16 // cause the context menu to appear, and is not expected to trigger events
17 // in the webview. If |triggers_context_menu| is false, the converse is true.
18 // This action doesn't fail if the context menu isn't displayed; calling code
19 // should check for that separately with a matcher.
20 id<GREYAction> longPressElementForContextMenu(const std::string& element_id,
21 bool triggers_context_menu);
22
23 } // namespace web
24
25 #endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_
OLDNEW
« no previous file with comments | « ios/web/shell/test/context_menu_egtest.mm ('k') | ios/web/shell/test/earl_grey/shell_actions.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698