OLD | NEW |
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 Loading... |
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); |
60 }, | 116 }, |
61 }; | 117 }; |
62 | 118 |
63 function createOobeWebUITestSupervisedManagerData() { | 119 function createOobeWebUITestSupervisedManagerData() { |
64 return { 'managers': | 120 return { 'managers': |
65 [ | 121 [ |
66 { 'username' : 'user@invalid.domain', | 122 { 'username' : 'user@invalid.domain', |
67 'displayName' : 'John Doe', | 123 'displayName' : 'John Doe', |
68 'emailAddress' : 'user@invalid.domain' | 124 'emailAddress' : 'user@invalid.domain' |
69 }, | 125 }, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 expectEquals(!!expectedClasses[className], | 232 expectEquals(!!expectedClasses[className], |
177 symbol.classList.contains(className)); | 233 symbol.classList.contains(className)); |
178 }); | 234 }); |
179 }); | 235 }); |
180 | 236 |
181 login.HIDDetectionScreen.contextChanged({ | 237 login.HIDDetectionScreen.contextChanged({ |
182 'keyboard-state': 'connected' | 238 'keyboard-state': 'connected' |
183 }); | 239 }); |
184 expectTrue($('hid-keyboard-pincode').hidden); | 240 expectTrue($('hid-keyboard-pincode').hidden); |
185 }); | 241 }); |
OLD | NEW |