Commit aa3d8237 authored by Kyle Horimoto's avatar Kyle Horimoto Committed by Commit Bot

[CrOS Settings] Remove oppressive language from a11y test

Fixed: 1123073
Change-Id: Ie822a54e391c87f622b8d92e55dfeb224046cf23
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2386580
Commit-Queue: Kyle Horimoto <khorimoto@chromium.org>
Commit-Queue: Regan Hsu <hsuregan@chromium.org>
Auto-Submit: Kyle Horimoto <khorimoto@chromium.org>
Reviewed-by: default avatarRegan Hsu <hsuregan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#803368}
parent d0a70a57
......@@ -42,18 +42,18 @@ OSSettingsAccessibilityTest.axeOptionsExcludeLinkInTextBlock =
// Default accessibility audit options. Specify in test definition to use.
OSSettingsAccessibilityTest.violationFilter = {
'aria-valid-attr': function(nodeResult) {
const attributeWhitelist = [
const attributeAllowlist = [
'aria-active-attribute', // Polymer components use aria-active-attribute.
'aria-roledescription', // This attribute is now widely supported.
];
return attributeWhitelist.some(a => nodeResult.element.hasAttribute(a));
return attributeAllowlist.some(a => nodeResult.element.hasAttribute(a));
},
'aria-allowed-attr': function(nodeResult) {
const attributeWhitelist = [
const attributeAllowlist = [
'aria-roledescription', // This attribute is now widely supported.
];
return attributeWhitelist.some(a => nodeResult.element.hasAttribute(a));
return attributeAllowlist.some(a => nodeResult.element.hasAttribute(a));
},
'button-name': function(nodeResult) {
if (nodeResult.element.classList.contains('icon-expand-more')) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment