| 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 {TestBrowserProxy} | 9 * @extends {TestBrowserProxy} |
| 10 */ | 10 */ |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 aboutObsoleteEndOfTheLine: false, | 194 aboutObsoleteEndOfTheLine: false, |
| 195 }); | 195 }); |
| 196 }); | 196 }); |
| 197 | 197 |
| 198 /** @return {!Promise} */ | 198 /** @return {!Promise} */ |
| 199 function initNewPage() { | 199 function initNewPage() { |
| 200 aboutBrowserProxy.reset(); | 200 aboutBrowserProxy.reset(); |
| 201 lifetimeBrowserProxy.reset(); | 201 lifetimeBrowserProxy.reset(); |
| 202 PolymerTest.clearBody(); | 202 PolymerTest.clearBody(); |
| 203 page = document.createElement('settings-about-page'); | 203 page = document.createElement('settings-about-page'); |
| 204 settings.navigateTo(settings.Route.ABOUT); | 204 settings.navigateTo(settings.routes.ABOUT); |
| 205 document.body.appendChild(page); | 205 document.body.appendChild(page); |
| 206 if (!cr.isChromeOS) { | 206 if (!cr.isChromeOS) { |
| 207 return aboutBrowserProxy.whenCalled('refreshUpdateStatus'); | 207 return aboutBrowserProxy.whenCalled('refreshUpdateStatus'); |
| 208 } else { | 208 } else { |
| 209 return Promise.all([ | 209 return Promise.all([ |
| 210 aboutBrowserProxy.whenCalled('getChannelInfo'), | 210 aboutBrowserProxy.whenCalled('getChannelInfo'), |
| 211 aboutBrowserProxy.whenCalled('refreshUpdateStatus'), | 211 aboutBrowserProxy.whenCalled('refreshUpdateStatus'), |
| 212 ]); | 212 ]); |
| 213 } | 213 } |
| 214 } | 214 } |
| (...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 876 registerTests: function() { | 876 registerTests: function() { |
| 877 if (cr.isChromeOS) { | 877 if (cr.isChromeOS) { |
| 878 registerDetailedBuildInfoTests(); | 878 registerDetailedBuildInfoTests(); |
| 879 registerChannelSwitcherDialogTests(); | 879 registerChannelSwitcherDialogTests(); |
| 880 } | 880 } |
| 881 registerAboutPageTests(); | 881 registerAboutPageTests(); |
| 882 }, | 882 }, |
| 883 registerOfficialBuildTests: registerOfficialBuildTests, | 883 registerOfficialBuildTests: registerOfficialBuildTests, |
| 884 }; | 884 }; |
| 885 }); | 885 }); |
| OLD | NEW |