OLD | NEW |
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 Loading... |
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'); |
OLD | NEW |