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

Side by Side Diff: chrome/browser/ui/webui/help/help_browsertest.js

Issue 596923002: Enable a11y audits and fix issues for help page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/resources/help/help_content.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * TestFixture for extension settings WebUI testing. 6 * TestFixture for extension settings WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 */ 9 */
10 function HelpPageWebUITest() {} 10 function HelpPageWebUITest() {}
11 11
12 HelpPageWebUITest.prototype = { 12 HelpPageWebUITest.prototype = {
13 __proto__: testing.Test.prototype, 13 __proto__: testing.Test.prototype,
14 14
15 /** @override */
16 runAccessibilityChecks: true,
17
18 /** @override */
19 accessibilityIssuesAreErrors: true,
20
15 browsePreload: 'chrome://help-frame/', 21 browsePreload: 'chrome://help-frame/',
16 }; 22 };
17 23
18 // Test opening extension settings has correct location. 24 // Test opening extension settings has correct location.
19 TEST_F('HelpPageWebUITest', 'testOpenHelpPage', function() { 25 TEST_F('HelpPageWebUITest', 'testOpenHelpPage', function() {
20 assertEquals(this.browsePreload, document.location.href); 26 assertEquals(this.browsePreload, document.location.href);
21 }); 27 });
22 28
23 GEN('#if defined(OS_LINUX) || defined(GOOGLE_CHROME_BUILD)'); 29 GEN('#if defined(OS_LINUX) || defined(GOOGLE_CHROME_BUILD)');
24 30
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 help.HelpPage.setUpdateStatus('nearly_updated', ''); 88 help.HelpPage.setUpdateStatus('nearly_updated', '');
83 expectFalse(container.hidden); 89 expectFalse(container.hidden);
84 expectTrue(update.hidden); 90 expectTrue(update.hidden);
85 91
86 help.HelpPage.setUpdateStatus('updated', ''); 92 help.HelpPage.setUpdateStatus('updated', '');
87 expectFalse(container.hidden); 93 expectFalse(container.hidden);
88 expectTrue(!update.hidden && update.disabled); 94 expectTrue(!update.hidden && update.disabled);
89 }); 95 });
90 96
91 GEN('#endif'); 97 GEN('#endif');
OLDNEW
« no previous file with comments | « chrome/browser/resources/help/help_content.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698