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

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

Issue 11363170: Add an accessibility audit test for WebUI pages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added some test cases for the test test Created 8 years 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/history_browsertest.js
diff --git a/chrome/test/data/webui/history_browsertest.js b/chrome/test/data/webui/history_browsertest.js
index dc8afaf5520208131fcd557a44f3ae0f37980eba..b87e6fe555f94e566a7e4841a657f01b3dd62983 100644
--- a/chrome/test/data/webui/history_browsertest.js
+++ b/chrome/test/data/webui/history_browsertest.js
@@ -38,6 +38,9 @@ BaseHistoryWebUITest.prototype = {
isAsync: true,
+ runA11yChecks: false,
+ a11yIssuesAreErrors: true,
+
/**
* Register handlers to stub out calls to the history backend.
* @override
@@ -107,6 +110,8 @@ TEST_F('BaseHistoryWebUITest', 'emptyHistory', function() {
});
TEST_F('HistoryWebUITest', 'basicTest', function() {
+ enableA11yChecks();
+
var resultCount = document.querySelectorAll('.entry').length;
// Check that there are two days of entries.

Powered by Google App Engine
This is Rietveld 408576698