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

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 UI review: Changed vector icons and UI strings. 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 var updateStatusContainer = $('update-status-container');
129 var update = $('request-update'); 129 var update = $('request-update');
130 var message = $('eol-message'); 130 var eolStatusContainer = $('eol-status-container');
131 131
132 help.HelpPage.updateEolMessage('device_supported', ''); 132 help.HelpPage.updateEolMessage('device_supported', '');
133 expectTrue(message.hidden); 133 expectTrue(eolStatusContainer.hidden);
134 134
135 help.HelpPage.updateEolMessage('device_endoflife', ''); 135 help.HelpPage.updateEolMessage('device_endoflife', '');
136 expectFalse(message.hidden); 136 expectFalse(eolStatusContainer.hidden);
137 expectTrue(update.disabled); 137 expectTrue(update.disabled);
138 expectTrue(container.hidden); 138 expectTrue(updateStatusContainer.hidden);
139 }); 139 });
140 140
141 GEN('#endif'); 141 GEN('#endif');
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698