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

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

Issue 2805003005: MD Settings: Move Activity Controls link to Sync subpage (Closed)
Patch Set: remove an obsolete test Created 3 years, 8 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/people_page/sync_page.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_people_page', function() { 5 cr.define('settings_people_page', function() {
6 /** 6 /**
7 * @constructor 7 * @constructor
8 * @implements {settings.ProfileInfoBrowserProxy} 8 * @implements {settings.ProfileInfoBrowserProxy}
9 * @extends {settings.TestBrowserProxy} 9 * @extends {settings.TestBrowserProxy}
10 */ 10 */
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 var popstatePromise = new Promise(function(resolve) { 322 var popstatePromise = new Promise(function(resolve) {
323 listenOnce(window, 'popstate', resolve); 323 listenOnce(window, 'popstate', resolve);
324 }); 324 });
325 325
326 settings.navigateTo(settings.Route.SIGN_OUT); 326 settings.navigateTo(settings.Route.SIGN_OUT);
327 327
328 return popstatePromise; 328 return popstatePromise;
329 }); 329 });
330 }); 330 });
331 331
332 test('ActivityControlsLink', function() {
tommycli 2017/04/07 22:19:11 This test is no longer necessary, since the sync p
Dan Beam 2017/04/07 22:21:57 Acknowledged.
333 return browserProxy.whenCalled('getSyncStatus').then(function() {
334 Polymer.dom.flush();
335
336 var activityControls = peoplePage.$$('#activity-controls');
337 assertTrue(!!activityControls);
338 assertFalse(activityControls.hidden);
339
340 cr.webUIListenerCallback('sync-status-changed', {
341 signedIn: false,
342 });
343
344 assertTrue(activityControls.hidden);
345 });
346 });
347
348 test('syncStatusNotActionableForManagedAccounts', function() { 332 test('syncStatusNotActionableForManagedAccounts', function() {
349 assertFalse(!!peoplePage.$$('#sync-status')); 333 assertFalse(!!peoplePage.$$('#sync-status'));
350 334
351 return browserProxy.whenCalled('getSyncStatus').then(function() { 335 return browserProxy.whenCalled('getSyncStatus').then(function() {
352 cr.webUIListenerCallback('sync-status-changed', { 336 cr.webUIListenerCallback('sync-status-changed', {
353 signedIn: true, 337 signedIn: true,
354 syncSystemEnabled: true, 338 syncSystemEnabled: true,
355 }); 339 });
356 Polymer.dom.flush(); 340 Polymer.dom.flush();
357 341
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 } 389 }
406 390
407 return { 391 return {
408 registerTests: function() { 392 registerTests: function() {
409 registerProfileInfoTests(); 393 registerProfileInfoTests();
410 if (!cr.isChromeOS) 394 if (!cr.isChromeOS)
411 registerSyncStatusTests(); 395 registerSyncStatusTests();
412 }, 396 },
413 }; 397 };
414 }); 398 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/people_page/sync_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698