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

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

Issue 2081873002: Incorporate comments in Dbus code and add Eol icon (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate comments from xiyuan@ Created 4 years, 5 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
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() {}
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 expectTrue(policyIcon.hidden); 118 expectTrue(policyIcon.hidden);
119 119
120 help.HelpPage.setUpdateStatus('disabled_by_admin', ''); 120 help.HelpPage.setUpdateStatus('disabled_by_admin', '');
121 expectTrue(container.hidden); 121 expectTrue(container.hidden);
122 expectTrue(!update.hidden && update.disabled); 122 expectTrue(!update.hidden && update.disabled);
123 expectFalse(policyIcon.hidden); 123 expectFalse(policyIcon.hidden);
124 }); 124 });
125 125
126 // Test that the EndofLife String is shown and hidden properly. 126 // Test that the EndofLife String is shown and hidden properly.
127 TEST_F('HelpPageWebUITest', 'testUpdateEolMessage', function() { 127 TEST_F('HelpPageWebUITest', 'testUpdateEolMessage', function() {
128 var container = $('update-status-container'); 128 // Enable when failure is resolved.
129 // AX_TEXT_04: http://crbug.com/570563
130 this.accessibilityAuditConfig.ignoreSelectors(
131 'linkWithUnclearPurpose',
132 '#eol-learnMore > A');
133
134 var updateStatusContainer = $('update-status-container');
129 var update = $('request-update'); 135 var update = $('request-update');
130 var message = $('eol-message'); 136 var eolStatusContainer = $('eol-status-container');
131 137
132 help.HelpPage.updateEolMessage('device_supported', ''); 138 help.HelpPage.updateEolMessage('device_supported', '');
133 expectTrue(message.hidden); 139 expectTrue(eolStatusContainer.hidden);
134 140
135 help.HelpPage.updateEolMessage('device_endoflife', ''); 141 help.HelpPage.updateEolMessage('device_endoflife', '');
136 expectFalse(message.hidden); 142 expectFalse(eolStatusContainer.hidden);
137 expectTrue(update.disabled); 143 expectTrue(update.disabled);
138 expectTrue(container.hidden); 144 expectTrue(updateStatusContainer.hidden);
139 }); 145 });
140 146
141 GEN('#endif'); 147 GEN('#endif');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698