OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 /** | 5 /** |
6 * @constructor | 6 * @constructor |
7 * @extends {testing.Test} | 7 * @extends {testing.Test} |
8 */ | 8 */ |
9 function OptionsBrowsertestBase() {} | 9 function OptionsBrowsertestBase() {} |
10 | 10 |
11 OptionsBrowsertestBase.prototype = { | 11 OptionsBrowsertestBase.prototype = { |
12 __proto__: testing.Test.prototype, | 12 __proto__: testing.Test.prototype, |
13 | 13 |
14 /** @override */ | 14 /** @override */ |
15 runAccessibilityChecks: true, | 15 runAccessibilityChecks: true, |
16 | 16 |
17 /** @override */ | 17 /** @override */ |
18 accessibilityIssuesAreErrors: true, | 18 accessibilityIssuesAreErrors: true, |
19 | |
20 /** @override */ | |
21 setUp: function() { | |
22 testing.Test.prototype.setUp.call(this); | |
23 | |
24 var requiredOwnedAriaRoleMissingSelectors = [ | |
25 '#address-list', | |
26 '#creditcard-list', | |
27 '#home-page-overlay > .autocomplete-suggestions', | |
28 '#language-options-list', | |
29 '#manage-profile-icon-grid', | |
30 '#create-profile-icon-grid', | |
31 '#saved-passwords-list', | |
32 '#password-exceptions-list', | |
33 '#extension-keyword-list', | |
34 '#startup-overlay > .autocomplete-suggestions', | |
35 '#content-settings-exceptions-area > .content-area > *', | |
36 '#cookies-list', | |
37 '#handlers-list', | |
38 '#ignored-handlers-list', | |
39 '#supervised-user-list', | |
40 '#select-avatar-grid', | |
41 '#language-dictionary-overlay-word-list', | |
42 // Selectors below only affect ChromeOS tests. | |
43 '#bluetooth-unpaired-devices-list', | |
44 '#ignored-host-list', | |
45 '#remembered-network-list', | |
46 '#bluetooth-paired-devices-list', | |
47 ]; | |
48 | |
49 // Enable when failure is resolved. | |
50 // AX_ARIA_08: http://crbug.com/559265 | |
51 this.accessibilityAuditConfig.ignoreSelectors( | |
52 'requiredOwnedAriaRoleMissing', | |
53 requiredOwnedAriaRoleMissingSelectors); | |
54 | |
55 var tabIndexGreaterThanZeroSelectors = [ | |
56 '#user-image-grid', | |
57 '#discard-photo', | |
58 '#take-photo', | |
59 '#flip-photo', | |
60 '#change-picture-overlay-confirm', | |
61 ]; | |
62 | |
63 // Enable when failure is resolved. | |
64 // AX_FOCUS_03: http://crbug.com/560910 | |
65 this.accessibilityAuditConfig.ignoreSelectors( | |
66 'tabIndexGreaterThanZero', | |
67 tabIndexGreaterThanZeroSelectors); | |
68 }, | |
69 }; | 19 }; |
OLD | NEW |