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

Side by Side Diff: ios/chrome/browser/ui/settings/translate_ui_egtest.mm

Issue 2589193002: Revert to the old back arrow style with NavigationBar (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 unified diff | Download patch
« no previous file with comments | « ios/chrome/browser/ui/settings/settings_navigation_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #import <EarlGrey/EarlGrey.h> 5 #import <EarlGrey/EarlGrey.h>
6 #import <XCTest/XCTest.h> 6 #import <XCTest/XCTest.h>
7 7
8 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h" 8 #import "ios/chrome/browser/ui/settings/settings_collection_view_controller.h"
9 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h" 9 #import "ios/chrome/browser/ui/tools_menu/tools_menu_view_controller.h"
10 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h" 10 #import "ios/chrome/browser/ui/tools_menu/tools_popup_controller.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 // Assert title and accessibility. 51 // Assert title and accessibility.
52 [[EarlGrey 52 [[EarlGrey
53 selectElementWithMatcher:grey_accessibilityID( 53 selectElementWithMatcher:grey_accessibilityID(
54 @"translate_settings_view_controller")] 54 @"translate_settings_view_controller")]
55 assertWithMatcher:grey_notNil()]; 55 assertWithMatcher:grey_notNil()];
56 chrome_test_util::VerifyAccessibilityForCurrentScreen(); 56 chrome_test_util::VerifyAccessibilityForCurrentScreen();
57 57
58 // Close settings. 58 // Close settings.
59 [[EarlGrey 59 [[EarlGrey
60 selectElementWithMatcher:grey_allOf( 60 selectElementWithMatcher:grey_allOf(
61 grey_accessibilityID(@"back_bar_button"), 61 grey_accessibilityID(@"ic_arrow_back"),
62 grey_accessibilityTrait( 62 grey_accessibilityTrait(
63 UIAccessibilityTraitButton), 63 UIAccessibilityTraitButton),
64 nil)] performAction:grey_tap()]; 64 nil)] performAction:grey_tap()];
65 [[EarlGrey 65 [[EarlGrey
66 selectElementWithMatcher:grey_allOf( 66 selectElementWithMatcher:grey_allOf(
67 grey_accessibilityID(@"back_bar_button"), 67 grey_accessibilityID(@"ic_arrow_back"),
68 grey_accessibilityTrait( 68 grey_accessibilityTrait(
69 UIAccessibilityTraitButton), 69 UIAccessibilityTraitButton),
70 nil)] performAction:grey_tap()]; 70 nil)] performAction:grey_tap()];
71 [[EarlGrey 71 [[EarlGrey
72 selectElementWithMatcher:chrome_test_util::buttonWithAccessibilityLabelId( 72 selectElementWithMatcher:chrome_test_util::buttonWithAccessibilityLabelId(
73 IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)] 73 IDS_IOS_NAVIGATION_BAR_DONE_BUTTON)]
74 performAction:grey_tap()]; 74 performAction:grey_tap()];
75 } 75 }
76 76
77 @end 77 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/settings/settings_navigation_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698