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

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: Doing accessibility check in javascript, with flags for whether to run a11y checks and whether to t… 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..e5e6de9b49ca190d764b68d00becf6e41b757cca 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: false,
+
/**
* Register handlers to stub out calls to the history backend.
* @override
@@ -107,12 +110,15 @@ 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.
var dayHeaders = document.querySelectorAll('.day');
assertEquals(2, dayHeaders.length);
expectNotEquals(dayHeaders[0].textContent, dayHeaders[1].textContent);
+ expectAccessibilityOk();
// Check that the entries in each day are time-ordered, and that no
// duplicate URLs appear on a given day.

Powered by Google App Engine
This is Rietveld 408576698