| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 cr.define('settings_about_page', function() { | 5 cr.define('settings_about_page', function() { |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @implements {settings.AboutPageBrowserProxy} | 8 * @implements {settings.AboutPageBrowserProxy} |
| 9 * @extends {settings.TestBrowserProxy} | 9 * @extends {settings.TestBrowserProxy} |
| 10 */ | 10 */ |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 previousMessageText = statusMessageEl.textContent; | 234 previousMessageText = statusMessageEl.textContent; |
| 235 | 235 |
| 236 fireStatusChanged(UpdateStatus.NEARLY_UPDATED); | 236 fireStatusChanged(UpdateStatus.NEARLY_UPDATED); |
| 237 assertEquals(null, icon.src); | 237 assertEquals(null, icon.src); |
| 238 assertEquals('settings:check-circle', icon.icon); | 238 assertEquals('settings:check-circle', icon.icon); |
| 239 assertNotEquals(previousMessageText, statusMessageEl.textContent); | 239 assertNotEquals(previousMessageText, statusMessageEl.textContent); |
| 240 previousMessageText = statusMessageEl.textContent; | 240 previousMessageText = statusMessageEl.textContent; |
| 241 | 241 |
| 242 fireStatusChanged(UpdateStatus.DISABLED_BY_ADMIN); | 242 fireStatusChanged(UpdateStatus.DISABLED_BY_ADMIN); |
| 243 assertEquals(null, icon.src); | 243 assertEquals(null, icon.src); |
| 244 assertEquals('cr:domain', icon.icon); | 244 assertEquals('cr20:domain', icon.icon); |
| 245 assertEquals(0, statusMessageEl.textContent.trim().length); | 245 assertEquals(0, statusMessageEl.textContent.trim().length); |
| 246 | 246 |
| 247 fireStatusChanged(UpdateStatus.FAILED); | 247 fireStatusChanged(UpdateStatus.FAILED); |
| 248 assertEquals(null, icon.src); | 248 assertEquals(null, icon.src); |
| 249 assertEquals('settings:error', icon.icon); | 249 assertEquals('settings:error', icon.icon); |
| 250 assertEquals(0, statusMessageEl.textContent.trim().length); | 250 assertEquals(0, statusMessageEl.textContent.trim().length); |
| 251 | 251 |
| 252 fireStatusChanged(UpdateStatus.DISABLED); | 252 fireStatusChanged(UpdateStatus.DISABLED); |
| 253 assertEquals(null, icon.src); | 253 assertEquals(null, icon.src); |
| 254 assertEquals(null, icon.getAttribute('icon')); | 254 assertEquals(null, icon.getAttribute('icon')); |
| (...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 registerTests: function() { | 851 registerTests: function() { |
| 852 if (cr.isChromeOS) { | 852 if (cr.isChromeOS) { |
| 853 registerDetailedBuildInfoTests(); | 853 registerDetailedBuildInfoTests(); |
| 854 registerChannelSwitcherDialogTests(); | 854 registerChannelSwitcherDialogTests(); |
| 855 } | 855 } |
| 856 registerAboutPageTests(); | 856 registerAboutPageTests(); |
| 857 }, | 857 }, |
| 858 registerOfficialBuildTests: registerOfficialBuildTests, | 858 registerOfficialBuildTests: registerOfficialBuildTests, |
| 859 }; | 859 }; |
| 860 }); | 860 }); |
| OLD | NEW |