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 <EarlGrey/EarlGrey.h> | 5 #import <EarlGrey/EarlGrey.h> |
6 #import <UIKit/UIKit.h> | 6 #import <UIKit/UIKit.h> |
7 #import <XCTest/XCTest.h> | 7 #import <XCTest/XCTest.h> |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
905 [[EarlGrey selectElementWithMatcher:SettingsButton()] | 905 [[EarlGrey selectElementWithMatcher:SettingsButton()] |
906 performAction:grey_tap()]; | 906 performAction:grey_tap()]; |
907 [[EarlGrey selectElementWithMatcher:AutofillButton()] | 907 [[EarlGrey selectElementWithMatcher:AutofillButton()] |
908 performAction:grey_tap()]; | 908 performAction:grey_tap()]; |
909 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 909 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
910 [self closeSubSettingsMenu]; | 910 [self closeSubSettingsMenu]; |
911 } | 911 } |
912 | 912 |
913 // Verifies the UI elements are accessible on the Google Apps page. | 913 // Verifies the UI elements are accessible on the Google Apps page. |
914 - (void)testAccessibilityOnGoogleApps { | 914 - (void)testAccessibilityOnGoogleApps { |
| 915 // TODO(crbug/711511): Remove when Native App Launcher is full deprecated. |
| 916 if (!experimental_flags::IsNativeAppLauncherEnabled()) |
| 917 return; |
915 [ChromeEarlGreyUI openToolsMenu]; | 918 [ChromeEarlGreyUI openToolsMenu]; |
916 [[EarlGrey selectElementWithMatcher:SettingsButton()] | 919 [[EarlGrey selectElementWithMatcher:SettingsButton()] |
917 performAction:grey_tap()]; | 920 performAction:grey_tap()]; |
918 [[EarlGrey selectElementWithMatcher:GoogleAppsButton()] | 921 [[EarlGrey selectElementWithMatcher:GoogleAppsButton()] |
919 performAction:grey_tap()]; | 922 performAction:grey_tap()]; |
920 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 923 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
921 [self closeSubSettingsMenu]; | 924 [self closeSubSettingsMenu]; |
922 } | 925 } |
923 | 926 |
924 // Verifies the UI elements are accessible on the About Chrome page. | 927 // Verifies the UI elements are accessible on the About Chrome page. |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1031 performAction:grey_tap()]; | 1034 performAction:grey_tap()]; |
1032 [[EarlGrey selectElementWithMatcher:PrivacyButton()] | 1035 [[EarlGrey selectElementWithMatcher:PrivacyButton()] |
1033 performAction:grey_tap()]; | 1036 performAction:grey_tap()]; |
1034 [[EarlGrey selectElementWithMatcher:SendUsageDataButton()] | 1037 [[EarlGrey selectElementWithMatcher:SendUsageDataButton()] |
1035 performAction:grey_tap()]; | 1038 performAction:grey_tap()]; |
1036 chrome_test_util::VerifyAccessibilityForCurrentScreen(); | 1039 chrome_test_util::VerifyAccessibilityForCurrentScreen(); |
1037 [self closeSubSettingsMenu]; | 1040 [self closeSubSettingsMenu]; |
1038 } | 1041 } |
1039 | 1042 |
1040 @end | 1043 @end |
OLD | NEW |