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

Side by Side Diff: ios/showcase/tab/sc_tab_egtest.mm

Issue 2764063002: Add TabContainer to Showcase (Closed)
Patch Set: Other heuristic for back button 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
(Empty)
1 // Copyright 2017 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 #import <EarlGrey/EarlGrey.h>
6
7 #import "ios/showcase/test/showcase_matchers.h"
8 #import "ios/showcase/test/showcase_test_case.h"
9
10 #if !defined(__has_feature) || !__has_feature(objc_arc)
11 #error "This file requires ARC support."
12 #endif
13
14 // Tests for the tab container view controller.
15 @interface SCTabTestCase : ShowcaseTestCase
16 @end
17
18 @implementation SCTabTestCase
19
20 // Tests launching TopToolbarTabViewController.
21 - (void)testLaunchWithTopToolbar {
22 [[EarlGrey selectElementWithMatcher:grey_text(@"TopToolbarTabViewController")]
23 performAction:grey_tap()];
24 [[EarlGrey selectElementWithMatcher:showcase_matchers::FirstLevelBackButton()]
25 performAction:grey_tap()];
26 }
27
28 // Tests launching BottomToolbarTabViewController.
29 - (void)testLaunchWithBottomToolbar {
30 [[EarlGrey
31 selectElementWithMatcher:grey_text(@"BottomToolbarTabViewController")]
32 performAction:grey_tap()];
33 [[EarlGrey selectElementWithMatcher:showcase_matchers::FirstLevelBackButton()]
34 performAction:grey_tap()];
35 }
36
37 @end
OLDNEW
« no previous file with comments | « ios/showcase/tab/sc_bottom_toolbar_tab_coordinator.mm ('k') | ios/showcase/tab/sc_top_toolbar_tab_coordinator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698