Chromium Code Reviews| Index: ios/web/shell/test/earl_grey/shell_actions.h |
| diff --git a/ios/web/shell/test/earl_grey/shell_actions.h b/ios/web/shell/test/earl_grey/shell_actions.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..82ff4cb4068c8dcc3eccbb74440d756acdddb22f |
| --- /dev/null |
| +++ b/ios/web/shell/test/earl_grey/shell_actions.h |
| @@ -0,0 +1,25 @@ |
| +// 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_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_ |
| +#define IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_ |
| + |
| +#import <string> |
|
Eugene But (OOO till 7-30)
2016/08/30 18:11:05
s/import/include
marq (ping after 24h)
2016/08/31 13:07:58
Done.
|
| + |
| +#import <EarlGrey/EarlGrey.h> |
| + |
| +namespace web { |
| + |
| +// Executes a longpress on element |element_id| in the shell's webview. |
| +// If |triggers_context_menu| is true, this gesture is expected to |
| +// cause the context menu to appear, and is not expected to trigger events |
| +// in the webview. If |triggers_context_menu| is false, the converse is true. |
| +// This action doesn't fail if the context menu isn't displayed; calling code |
| +// should check for that separately with a matcher. |
| +void LongPressWebViewElementForContextMenu(std::string element_id, |
|
Eugene But (OOO till 7-30)
2016/08/30 18:11:05
const std::string& ?
marq (ping after 24h)
2016/08/31 13:07:58
Done.
|
| + bool triggers_context_menu); |
| + |
| +} // namespace web |
| + |
| +#endif // IOS_WEB_SHELL_TEST_EARL_GREY_SHELL_ACTIONS_H_ |