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

Side by Side Diff: chrome/test/data/chromeos/oobe_webui_browsertest.js

Issue 1481723002: Revert of [a11y] Bring accessibility-audit up to date: v2.10.0 release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 GEN('#include "chrome/browser/ui/browser.h"'); 5 GEN('#include "chrome/browser/ui/browser.h"');
6 GEN('#include "chrome/browser/ui/browser_commands.h"'); 6 GEN('#include "chrome/browser/ui/browser_commands.h"');
7 GEN('#include "chrome/browser/ui/exclusive_access/' + 7 GEN('#include "chrome/browser/ui/exclusive_access/' +
8 'fullscreen_controller_test.h"'); 8 'fullscreen_controller_test.h"');
9 9
10 /** 10 /**
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 'nonExistentAriaLabelledbyElement', 50 'nonExistentAriaLabelledbyElement',
51 '#cancelConfirmDlg'); 51 '#cancelConfirmDlg');
52 52
53 /** 53 /**
54 * False positive AX_FOCUS_01. 54 * False positive AX_FOCUS_01.
55 * https://github.com/GoogleChrome/accessibility-developer-tools/issues/171 55 * https://github.com/GoogleChrome/accessibility-developer-tools/issues/171
56 */ 56 */
57 this.accessibilityAuditConfig.ignoreSelectors( 57 this.accessibilityAuditConfig.ignoreSelectors(
58 'focusableElementNotVisibleAndNotAriaHidden', 58 'focusableElementNotVisibleAndNotAriaHidden',
59 '#iconButton'); 59 '#iconButton');
60
61 // Enable when failure is resolved.
62 // AX_ARIA_02: http://crbug.com/560932
63 this.accessibilityAuditConfig.ignoreSelectors(
64 'nonExistentAriaRelatedElement',
65 '#cancelConfirmDlg');
66
67 var requiredOwnedAriaRoleMissingSelectors = [
68 '#networks-list-dropdown-container',
69 '#offline-networks-list-dropdown-container',
70 '#supervised-user-creation-image-grid',
71 'body > .decorated',
72 ];
73
74 // Enable when failure is resolved.
75 // AX_ARIA_08: http://crbug.com/560924
76 this.accessibilityAuditConfig.ignoreSelectors(
77 'requiredOwnedAriaRoleMissing',
78 requiredOwnedAriaRoleMissingSelectors);
79
80 var badAriaAttributeSelectors = [
81 '#forgotPasswordDlg',
82 '#cancelConfirmDlg',
83 ];
84
85 // Enable when failure is resolved.
86 // AX_ARIA_11: http://crbug.com/560935
87 this.accessibilityAuditConfig.ignoreSelectors(
88 'badAriaAttribute',
89 badAriaAttributeSelectors);
90
91 var tabIndexGreaterThanZeroSelectors = [
92 '#user-image-grid',
93 '#discard-photo',
94 '#take-photo',
95 '#flip-photo',
96 ];
97
98 // Enable when failure is resolved.
99 // AX_FOCUS_03: http://crbug.com/560928
100 this.accessibilityAuditConfig.ignoreSelectors(
101 'tabIndexGreaterThanZero',
102 tabIndexGreaterThanZeroSelectors);
103
104 var controlsWithoutLabelSelectors = [
105 '#supervised-user-creation-managers-pane',
106 '#supervised-user-creation-name',
107 '#supervised-user-creation-password',
108 '#supervised-user-creation-password-confirm',
109 ];
110
111 // Enable when failure is resolved.
112 // AX_TEXT_01: http://crbug.com/560939
113 this.accessibilityAuditConfig.ignoreSelectors(
114 'controlsWithoutLabel',
115 controlsWithoutLabelSelectors);
116 }, 60 },
117 }; 61 };
118 62
119 function createOobeWebUITestSupervisedManagerData() { 63 function createOobeWebUITestSupervisedManagerData() {
120 return { 'managers': 64 return { 'managers':
121 [ 65 [
122 { 'username' : 'user@invalid.domain', 66 { 'username' : 'user@invalid.domain',
123 'displayName' : 'John Doe', 67 'displayName' : 'John Doe',
124 'emailAddress' : 'user@invalid.domain' 68 'emailAddress' : 'user@invalid.domain'
125 }, 69 },
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 expectEquals(!!expectedClasses[className], 176 expectEquals(!!expectedClasses[className],
233 symbol.classList.contains(className)); 177 symbol.classList.contains(className));
234 }); 178 });
235 }); 179 });
236 180
237 login.HIDDetectionScreen.contextChanged({ 181 login.HIDDetectionScreen.contextChanged({
238 'keyboard-state': 'connected' 182 'keyboard-state': 'connected'
239 }); 183 });
240 expectTrue($('hid-keyboard-pincode').hidden); 184 expectTrue($('hid-keyboard-pincode').hidden);
241 }); 185 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_browsertest_base.js ('k') | chrome/test/data/webui/history_browsertest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698