OLD | NEW |
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 <XCTest/XCTest.h> | 5 #import <XCTest/XCTest.h> |
6 | 6 |
7 #import "base/mac/bind_objc_block.h" | 7 #import "base/mac/bind_objc_block.h" |
8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" | 8 #include "ios/chrome/browser/ui/tools_menu/tools_menu_constants.h" |
9 #include "ios/chrome/grit/ios_strings.h" | 9 #include "ios/chrome/grit/ios_strings.h" |
10 #include "ios/chrome/test/app/web_view_interaction_test_util.h" | 10 #include "ios/chrome/test/app/web_view_interaction_test_util.h" |
11 #include "ios/chrome/test/earl_grey/accessibility_util.h" | 11 #include "ios/chrome/test/earl_grey/accessibility_util.h" |
12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" | 12 #import "ios/chrome/test/earl_grey/chrome_earl_grey.h" |
13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" | 13 #import "ios/chrome/test/earl_grey/chrome_earl_grey_ui.h" |
14 #import "ios/chrome/test/earl_grey/chrome_matchers.h" | 14 #import "ios/chrome/test/earl_grey/chrome_matchers.h" |
15 #import "ios/chrome/test/earl_grey/chrome_test_case.h" | 15 #import "ios/chrome/test/earl_grey/chrome_test_case.h" |
16 #import "ios/web/public/test/http_server.h" | 16 #import "ios/web/public/test/http_server/http_server.h" |
17 #include "ios/web/public/test/http_server_util.h" | 17 #include "ios/web/public/test/http_server/http_server_util.h" |
18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
19 | 19 |
20 #if !defined(__has_feature) || !__has_feature(objc_arc) | 20 #if !defined(__has_feature) || !__has_feature(objc_arc) |
21 #error "This file requires ARC support." | 21 #error "This file requires ARC support." |
22 #endif | 22 #endif |
23 | 23 |
24 using chrome_test_util::ButtonWithAccessibilityLabel; | 24 using chrome_test_util::ButtonWithAccessibilityLabel; |
25 using chrome_test_util::ButtonWithAccessibilityLabelId; | 25 using chrome_test_util::ButtonWithAccessibilityLabelId; |
26 using chrome_test_util::NavigationBarDoneButton; | 26 using chrome_test_util::NavigationBarDoneButton; |
27 | 27 |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 // Switch on edit mode. | 236 // Switch on edit mode. |
237 [[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabelId( | 237 [[EarlGrey selectElementWithMatcher:ButtonWithAccessibilityLabelId( |
238 IDS_IOS_NAVIGATION_BAR_EDIT_BUTTON)] | 238 IDS_IOS_NAVIGATION_BAR_EDIT_BUTTON)] |
239 performAction:grey_tap()]; | 239 performAction:grey_tap()]; |
240 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 240 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
241 | 241 |
242 [self exitSettingsMenu]; | 242 [self exitSettingsMenu]; |
243 } | 243 } |
244 | 244 |
245 @end | 245 @end |
OLD | NEW |