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 /** | 5 /** |
6 * @fileoverview Library providing basic test framework functionality. | 6 * @fileoverview Library providing basic test framework functionality. |
7 */ | 7 */ |
8 | 8 |
9 /** | 9 /** |
10 * Namespace for |Test|. | 10 * Namespace for |Test|. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 | 135 |
136 /** | 136 /** |
137 * Returns the configuration for the accessibility audit, creating it | 137 * Returns the configuration for the accessibility audit, creating it |
138 * on-demand. | 138 * on-demand. |
139 * @return {axs.AuditConfiguration} | 139 * @return {axs.AuditConfiguration} |
140 */ | 140 */ |
141 get accessibilityAuditConfig() { | 141 get accessibilityAuditConfig() { |
142 if (!this.accessibilityAuditConfig_) { | 142 if (!this.accessibilityAuditConfig_) { |
143 this.accessibilityAuditConfig_ = new axs.AuditConfiguration(); | 143 this.accessibilityAuditConfig_ = new axs.AuditConfiguration(); |
144 | 144 |
| 145 this.accessibilityAuditConfig_.showUnsupportedRulesWarning = false; |
| 146 |
145 this.accessibilityAuditConfig_.auditRulesToIgnore = [ | 147 this.accessibilityAuditConfig_.auditRulesToIgnore = [ |
146 // The "elements with meaningful background image" accessibility | 148 // The "elements with meaningful background image" accessibility |
147 // audit (AX_IMAGE_01) does not apply, since Chrome doesn't | 149 // audit (AX_IMAGE_01) does not apply, since Chrome doesn't |
148 // disable background images in high-contrast mode like some | 150 // disable background images in high-contrast mode like some |
149 // browsers do. | 151 // browsers do. |
150 "elementsWithMeaningfulBackgroundImage", | 152 "elementsWithMeaningfulBackgroundImage", |
151 | 153 |
152 // Most WebUI pages are inside an IFrame, so the "web page should | 154 // Most WebUI pages are inside an IFrame, so the "web page should |
153 // have a title that describes topic or purpose" test (AX_TITLE_01) | 155 // have a title that describes topic or purpose" test (AX_TITLE_01) |
154 // generally does not apply. | 156 // generally does not apply. |
(...skipping 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1762 exports.TEST = TEST; | 1764 exports.TEST = TEST; |
1763 exports.TEST_F = TEST_F; | 1765 exports.TEST_F = TEST_F; |
1764 exports.RUNTIME_TEST_F = TEST_F; | 1766 exports.RUNTIME_TEST_F = TEST_F; |
1765 exports.GEN = GEN; | 1767 exports.GEN = GEN; |
1766 exports.GEN_INCLUDE = GEN_INCLUDE; | 1768 exports.GEN_INCLUDE = GEN_INCLUDE; |
1767 exports.WhenTestDone = WhenTestDone; | 1769 exports.WhenTestDone = WhenTestDone; |
1768 | 1770 |
1769 // Import the Mock4JS helpers. | 1771 // Import the Mock4JS helpers. |
1770 Mock4JS.addMockSupport(exports); | 1772 Mock4JS.addMockSupport(exports); |
1771 })(this); | 1773 })(this); |
OLD | NEW |