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

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

Issue 21944004: Enable the accessibility audit for chrome://net-internals (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
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 ff5421bad6eb71ab60e5133a720d01c6d3482082..56080651dd58f3cdbb728ee9325c504483f92a36 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,15 @@ var NetInternalsTest = (function() {
isAsync: true,
setUp: function() {
+ // Enforce accessibility auditing, but suppress some false positives.
+ this.accessibilityIssuesAreErrors = true;
+ this.accessibilityAuditConfig().ignoreSelectors(
+ 'lowContrastElements', '#timeline-view-selection-ul label');
+ this.accessibilityAuditConfig().ignoreSelectors(
+ 'lowContrastElements', '#export-view-save-log-file');
+ this.accessibilityAuditConfig().ignoreSelectors(
+ 'lowContrastElements', '#hsts-view-query-output span');
+
// 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