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

Unified Diff: chrome/test/data/webui/settings/people_page_test.js

Issue 2442843002: Override SigninManager::SignOut if force-signin is enabled. (Closed)
Patch Set: fix try bot Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/webui/settings/people_page_test.js
diff --git a/chrome/test/data/webui/settings/people_page_test.js b/chrome/test/data/webui/settings/people_page_test.js
index d29f76905fd6f8fb68ebe0954d763ba9546fcad2..506f26639a407ff3331c2ec136494302da16ad30 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -154,6 +154,49 @@ cr.define('settings_people_page', function() {
teardown(function() { peoplePage.remove(); });
+ test('ActivityControlsLink', function() {
+ return browserProxy.whenCalled('getSyncStatus').then(function() {
+ Polymer.dom.flush();
+
+ var activityControls = peoplePage.$$('#activity-controls');
+ assertTrue(!!activityControls);
+ assertFalse(activityControls.hidden);
+
+ cr.webUIListenerCallback('sync-status-changed', {
+ signedIn: false,
+ });
+
+ assertTrue(activityControls.hidden);
+ });
+ });
+
+ test('CustomizeSyncDisabledForManagedSignin', function() {
+ assertFalse(!!peoplePage.$$('#customize-sync'));
+
+ return browserProxy.whenCalled('getSyncStatus').then(function() {
+ cr.webUIListenerCallback('sync-status-changed', {
+ signedIn: true,
+ syncSystemEnabled: true,
+ });
+ Polymer.dom.flush();
+
+ var customizeSync = peoplePage.$$('#customize-sync');
+ assertTrue(!!customizeSync);
+ assertTrue(customizeSync.hasAttribute('actionable'));
+
+ cr.webUIListenerCallback('sync-status-changed', {
+ managed: true,
+ signedIn: true,
+ syncSystemEnabled: true,
+ });
+ Polymer.dom.flush();
+
+ var customizeSync = peoplePage.$$('#customize-sync');
+ assertTrue(!!customizeSync);
+ assertFalse(customizeSync.hasAttribute('actionable'));
+ });
+ });
+
test('GetProfileInfo', function() {
var disconnectButton = null;
return browserProxy.whenCalled('getSyncStatus').then(function() {
@@ -213,49 +256,6 @@ cr.define('settings_people_page', function() {
assertTrue(deleteProfile);
});
});
-
- test('ActivityControlsLink', function() {
- return browserProxy.whenCalled('getSyncStatus').then(function() {
- Polymer.dom.flush();
-
- var activityControls = peoplePage.$$('#activity-controls');
- assertTrue(!!activityControls);
- assertFalse(activityControls.hidden);
-
- cr.webUIListenerCallback('sync-status-changed', {
- signedIn: false,
- });
-
- assertTrue(activityControls.hidden);
- });
- });
-
- test('CustomizeSyncDisabledForManagedSignin', function() {
- assertFalse(!!peoplePage.$$('#customize-sync'));
-
- return browserProxy.whenCalled('getSyncStatus').then(function() {
- cr.webUIListenerCallback('sync-status-changed', {
- signedIn: true,
- syncSystemEnabled: true,
- });
- Polymer.dom.flush();
-
- var customizeSync = peoplePage.$$('#customize-sync');
- assertTrue(!!customizeSync);
- assertTrue(customizeSync.hasAttribute('actionable'));
-
- cr.webUIListenerCallback('sync-status-changed', {
- managed: true,
- signedIn: true,
- syncSystemEnabled: true,
- });
- Polymer.dom.flush();
-
- var customizeSync = peoplePage.$$('#customize-sync');
- assertTrue(!!customizeSync);
- assertFalse(customizeSync.hasAttribute('actionable'));
- });
- });
});
}

Powered by Google App Engine
This is Rietveld 408576698