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

Side by Side Diff: ios/chrome/test/earl_grey/chrome_earl_grey_ui.h

Issue 2752583004: Add helpers to swipe up and down on the current web view.
Patch Set: more typos! Created 3 years, 9 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ 5 #ifndef IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_
6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ 6 #define IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 // Test methods that perform actions on Chrome. These methods only affect Chrome 10 // Test methods that perform actions on Chrome. These methods only affect Chrome
(...skipping 11 matching lines...) Expand all
22 // Open a new incognito tab via the tools menu. 22 // Open a new incognito tab via the tools menu.
23 + (void)openNewIncognitoTab; 23 + (void)openNewIncognitoTab;
24 24
25 // Reloads the page. Does not wait until reload finishes. 25 // Reloads the page. Does not wait until reload finishes.
26 + (void)reload; 26 + (void)reload;
27 27
28 // Opens the share menu by tapping on the share button. 28 // Opens the share menu by tapping on the share button.
29 // Requires having a tab opened. 29 // Requires having a tab opened.
30 + (void)openShareMenu; 30 + (void)openShareMenu;
31 31
32 // Swipes up on the current web view, hiding the toolbar if it is present and
33 // hideable. It attempts to swipe to the bottom of the page in the web view, but
34 // if the toolbar disappears it can prevent it from making all the way to the
35 // bottom. Induces a GREYAssert if no web view is present.
36 + (void)swipeUpOnWebView;
37
38 // Swipes down on the current web view, showing the toolbar if it is hidden and
39 // able to be shown. Induces a GREYAssert if no web view is present.
40 + (void)swipeDownOnWebView;
41
32 @end 42 @end
33 43
34 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_ 44 #endif // IOS_CHROME_TEST_EARL_GREY_CHROME_EARL_GREY_UI_H_
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/fullscreen_egtest.mm ('k') | ios/chrome/test/earl_grey/chrome_earl_grey_ui.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698