OLD | NEW |
| (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 | |
OLD | NEW |