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

Side by Side Diff: chrome/test/data/webui/settings/about_page_tests.js

Issue 2259163002: MD Settings: Fix scrolling bugs and hacks caused by undefined load behavior (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@TransitionsNoTestsFakeRebase
Patch Set: rebase Created 4 years, 2 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
« no previous file with comments | « chrome/browser/resources/settings/settings_page/main_page_behavior.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/settings_page/main_page_behavior.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698