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

Unified Diff: ios/showcase/tab_grid/sc_tab_grid_egtest.mm

Issue 2592593003: Upstream ios/showcase source code. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/showcase/tab_grid/sc_tab_grid_coordinator.mm ('k') | ios/showcase/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/showcase/tab_grid/sc_tab_grid_egtest.mm
diff --git a/ios/showcase/tab_grid/sc_tab_grid_egtest.mm b/ios/showcase/tab_grid/sc_tab_grid_egtest.mm
new file mode 100644
index 0000000000000000000000000000000000000000..3521cbdb8353aa1c3308fb04924ea0c0873645da
--- /dev/null
+++ b/ios/showcase/tab_grid/sc_tab_grid_egtest.mm
@@ -0,0 +1,31 @@
+// 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.
+
+#import <EarlGrey/EarlGrey.h>
+
+#import "ios/showcase/test/showcase_test_case.h"
+
+#if !defined(__has_feature) || !__has_feature(objc_arc)
+#error "This file requires ARC support."
+#endif
+
+// Tests for the tab grid view controller.
+@interface SCTabGridTestCase : ShowcaseTestCase
+@end
+
+@implementation SCTabGridTestCase
+
+// Tests launching TabGridViewController and tapping a cell.
+- (void)testLaunchAndTappingCell {
+ [[EarlGrey selectElementWithMatcher:grey_text(@"TabGridViewController")]
+ performAction:grey_tap()];
+ [[EarlGrey selectElementWithMatcher:grey_text(@"Tab 0")]
+ performAction:grey_tap()];
+ [[EarlGrey selectElementWithMatcher:grey_text(@"TabGridActionDelegate")]
+ assertWithMatcher:grey_notNil()];
+ [[EarlGrey selectElementWithMatcher:grey_text(@"Done")]
+ performAction:grey_tap()];
+}
+
+@end
« no previous file with comments | « ios/showcase/tab_grid/sc_tab_grid_coordinator.mm ('k') | ios/showcase/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698