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

Side by Side Diff: chrome/browser/ui/webui/options/options_browsertest_base.js

Issue 2919343005: Remove tests for deprecated Options UI (Closed)
Patch Set: and more Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @constructor
7 * @extends {testing.Test}
8 */
9 function OptionsBrowsertestBase() {}
10
11 OptionsBrowsertestBase.prototype = {
12 __proto__: testing.Test.prototype,
13
14 /** @override */
15 runAccessibilityChecks: true,
16
17 /** @override */
18 accessibilityIssuesAreErrors: true,
19
20 /** @override */
21 setUp: function() {
22 testing.Test.prototype.setUp.call(this);
23
24 var requiredOwnedAriaRoleMissingSelectors = [
25 '#address-list',
26 '#creditcard-list',
27 '#home-page-overlay > .autocomplete-suggestions',
28 '#language-options-list',
29 '#manage-profile-icon-grid',
30 '#create-profile-icon-grid',
31 '#saved-passwords-list',
32 '#password-exceptions-list',
33 '#extension-keyword-list',
34 '#startup-overlay > .autocomplete-suggestions',
35 '#content-settings-exceptions-area > .content-area > *',
36 '#cookies-list',
37 '#handlers-list',
38 '#ignored-handlers-list',
39 '#supervised-user-list',
40 '#select-avatar-grid',
41 '#language-dictionary-overlay-word-list',
42 // Selectors below only affect ChromeOS tests.
43 '#bluetooth-unpaired-devices-list',
44 '#ignored-host-list',
45 '#remembered-network-list',
46 '#bluetooth-paired-devices-list',
47 ];
48
49 // Enable when failure is resolved.
50 // AX_ARIA_08: http://crbug.com/559265
51 this.accessibilityAuditConfig.ignoreSelectors(
52 'requiredOwnedAriaRoleMissing',
53 requiredOwnedAriaRoleMissingSelectors);
54
55 var tabIndexGreaterThanZeroSelectors = [
56 '#user-image-grid',
57 '#discard-photo',
58 '#take-photo',
59 '#flip-photo',
60 '#change-picture-overlay-confirm',
61 ];
62
63 // Enable when failure is resolved.
64 // AX_FOCUS_03: http://crbug.com/560910
65 this.accessibilityAuditConfig.ignoreSelectors(
66 'tabIndexGreaterThanZero',
67 tabIndexGreaterThanZeroSelectors);
68
69 // Enable when audit has improved performance.
70 // AX_HTML_02:
71 // https://github.com/GoogleChrome/accessibility-developer-tools/issues/263
72 this.accessibilityAuditConfig.auditRulesToIgnore.push(
73 'duplicateId');
74
75 // Enable when failure is resolved.
76 // AX_ARIA_02: http://crbug.com/591547
77 this.accessibilityAuditConfig.ignoreSelectors(
78 'nonExistentAriaRelatedElement', '#input');
79
80 // Enable when failure is resolved.
81 // AX_ARIA_04: http://crbug.com/591550
82 this.accessibilityAuditConfig.ignoreSelectors(
83 'badAriaAttributeValue', '#input');
84
85 },
86 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698