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

Unified Diff: chrome/browser/ui/webui/options/autofill_options_browsertest.js

Issue 646853004: Enable a11y audit for chrome://settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 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/browser/ui/webui/options/autofill_options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/autofill_options_browsertest.js b/chrome/browser/ui/webui/options/autofill_options_browsertest.js
index 43821b205a016ea6bd8a9095aa34ce21ef59214f..c7cb2b8f692d6f238bb66305368510b2a577a703 100644
--- a/chrome/browser/ui/webui/options/autofill_options_browsertest.js
+++ b/chrome/browser/ui/webui/options/autofill_options_browsertest.js
@@ -36,6 +36,20 @@ AutofillOptionsWebUITest.prototype = {
* Browse to autofill options.
*/
browsePreload: 'chrome://settings-frame/autofill',
+
+ /** @override */
+ runAccessibilityChecks: true,
+
+ /** @override */
+ accessibilityIssuesAreErrors: true,
+
+ /** override */
+ setUp: function() {
+ // user-image-stream is a streaming video element used for capturing a
+ // user image.
+ this.accessibilityAuditConfig.ignoreSelectors('videoWithoutCaptions',
+ '.user-image-stream');
+ },
};
// Test opening the autofill options has correct location.
@@ -53,8 +67,22 @@ function AutofillEditAddressWebUITest() {}
AutofillEditAddressWebUITest.prototype = {
__proto__: testing.Test.prototype,
+ /** @override */
+ runAccessibilityChecks: true,
+
+ /** @override */
+ accessibilityIssuesAreErrors: true,
+
/** @override */
browsePreload: 'chrome://settings-frame/autofillEditAddress',
+
+ /** override */
+ setUp: function() {
+ // user-image-stream is a streaming video element used for capturing a
+ // user image.
+ this.accessibilityAuditConfig.ignoreSelectors('videoWithoutCaptions',
+ '.user-image-stream');
+ },
};
TEST_F('AutofillEditAddressWebUITest', 'testInitialFormLayout', function() {

Powered by Google App Engine
This is Rietveld 408576698