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

Unified Diff: chrome/test/data/webui/net_internals/net_internals_test.js

Issue 1447693002: [a11y] Bring accessibility-audit up to date: v2.10.0 release. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the rest of the ChromeOS tests. File crbugs and update existing ones. Created 5 years, 1 month 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
Index: chrome/test/data/webui/net_internals/net_internals_test.js
diff --git a/chrome/test/data/webui/net_internals/net_internals_test.js b/chrome/test/data/webui/net_internals/net_internals_test.js
index 56bc93f61c1d2020280c025a8d30a67e1eb7a59a..b381ec82a776d2e5ee6b3195c3e0c3d8e98e1e61 100644
--- a/chrome/test/data/webui/net_internals/net_internals_test.js
+++ b/chrome/test/data/webui/net_internals/net_internals_test.js
@@ -56,6 +56,8 @@ var NetInternalsTest = (function() {
isAsync: true,
setUp: function() {
+ testing.Test.prototype.setUp.call(this);
+
// Enforce accessibility auditing, but suppress some false positives.
this.accessibilityIssuesAreErrors = true;
// False positive because a unicode character is used to draw a square.
@@ -79,6 +81,25 @@ var NetInternalsTest = (function() {
this.accessibilityAuditConfig.auditRulesToIgnore.push(
'focusableElementNotVisibleAndNotAriaHidden');
+ var controlsWithoutLabelSelectors = [
+ '#export-view-user-comments',
+ '#hsts-view-add-input',
+ '#hsts-view-delete-input',
+ '#hsts-view-query-input',
+ ];
+
+ // Enable when failure is resolved.
+ // AX_TEXT_01: http://crbug.com/559203
+ this.accessibilityAuditConfig.ignoreSelectors(
+ 'controlsWithoutLabel',
+ controlsWithoutLabelSelectors);
+
+ // Enable when warning is resolved.
+ // AX_HTML_01: http://crbug.com/559204
+ this.accessibilityAuditConfig.ignoreSelectors(
+ 'humanLangMissing',
+ 'html');
+
// Wrap g_browser.receive around a test function so that assert and expect
// functions can be called from observers.
g_browser.receive =

Powered by Google App Engine
This is Rietveld 408576698