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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 aboutObsoleteEndOfTheLine: false, | 174 aboutObsoleteEndOfTheLine: false, |
175 }); | 175 }); |
176 }); | 176 }); |
177 | 177 |
178 /** @return {!Promise} */ | 178 /** @return {!Promise} */ |
179 function initNewPage() { | 179 function initNewPage() { |
180 aboutBrowserProxy.reset(); | 180 aboutBrowserProxy.reset(); |
181 lifetimeBrowserProxy.reset(); | 181 lifetimeBrowserProxy.reset(); |
182 PolymerTest.clearBody(); | 182 PolymerTest.clearBody(); |
183 page = document.createElement('settings-about-page'); | 183 page = document.createElement('settings-about-page'); |
| 184 settings.navigateTo(settings.Route.ABOUT); |
184 document.body.appendChild(page); | 185 document.body.appendChild(page); |
185 return aboutBrowserProxy.whenCalled('refreshUpdateStatus'); | 186 return aboutBrowserProxy.whenCalled('refreshUpdateStatus'); |
186 } | 187 } |
187 | 188 |
188 /** | 189 /** |
189 * Test that the status icon and status message update according to | 190 * Test that the status icon and status message update according to |
190 * incoming 'update-status-changed' events. | 191 * incoming 'update-status-changed' events. |
191 */ | 192 */ |
192 test('IconAndMessageUpdates', function() { | 193 test('IconAndMessageUpdates', function() { |
193 var icon = page.$$('iron-icon'); | 194 var icon = page.$$('iron-icon'); |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
702 registerTests: function() { | 703 registerTests: function() { |
703 if (cr.isChromeOS) { | 704 if (cr.isChromeOS) { |
704 registerDetailedBuildInfoTests(); | 705 registerDetailedBuildInfoTests(); |
705 registerChannelSwitcherDialogTests(); | 706 registerChannelSwitcherDialogTests(); |
706 } | 707 } |
707 registerAboutPageTests(); | 708 registerAboutPageTests(); |
708 }, | 709 }, |
709 registerOfficialBuildTests: registerOfficialBuildTests, | 710 registerOfficialBuildTests: registerOfficialBuildTests, |
710 }; | 711 }; |
711 }); | 712 }); |
OLD | NEW |