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

Unified Diff: chrome/test/data/webui/test_api.js

Issue 23830003: Replace accessibility-developer-tools submodule with accessibility-audit directory containing just … (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert number of expected results in testCanIgnoreSelectors test to 2 Created 7 years, 3 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/webui/accessibility_audit_browsertest.js ('k') | chrome/unit_tests.isolate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/test_api.js
diff --git a/chrome/test/data/webui/test_api.js b/chrome/test/data/webui/test_api.js
index 6bf21775e2e49e6fedada2cc0cfb97356b50ecda..45f4a8d0ed370f4f0ff58bae59e09187fca8f053 100644
--- a/chrome/test/data/webui/test_api.js
+++ b/chrome/test/data/webui/test_api.js
@@ -142,12 +142,18 @@ var testing = {};
if (!this.accessibilityAuditConfig_) {
this.accessibilityAuditConfig_ = new axs.AuditConfiguration();
- // The "elements with meaningful background image" accessibility
- // audit (AX_IMAGE_01) does not apply, since Chrome doesn't
- // disable background images in high-contrast mode like some
- // browsers do.
- this.accessibilityAuditConfig_.ignoreSelectors(
- "elementsWithMeaningfulBackgroundImage", "*");
+ this.accessibilityAuditConfig_.auditRulesToIgnore = [
+ // The "elements with meaningful background image" accessibility
+ // audit (AX_IMAGE_01) does not apply, since Chrome doesn't
+ // disable background images in high-contrast mode like some
+ // browsers do.
+ "elementsWithMeaningfulBackgroundImage",
+
+ // Most WebUI pages are inside an IFrame, so the "web page should
+ // have a title that describes topic or purpose" test (AX_TITLE_01)
+ // generally does not apply.
+ "pageWithoutTitle"
+ ];
}
return this.accessibilityAuditConfig_;
},
« no previous file with comments | « chrome/test/data/webui/accessibility_audit_browsertest.js ('k') | chrome/unit_tests.isolate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698