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

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

Issue 2062503002: Settings People Revamp: Add 'Manage Supervised Users' row (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/webui/settings/profile_info_handler_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 40a16ea13e8fd717d2088d8e2b0ba332b48a181d..7105e0cb480164f8c0a656dcdaa50f084cac4ee5 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -11,6 +11,7 @@ cr.define('settings_people_page', function() {
var TestProfileInfoBrowserProxy = function() {
settings.TestBrowserProxy.call(this, [
'getProfileInfo',
+ 'getProfileManagesSupervisedUsers',
]);
};
@@ -27,6 +28,12 @@ cr.define('settings_people_page', function() {
this.methodCalled('getProfileInfo');
return Promise.resolve(this.fakeProfileInfo);
},
+
+ /** @override */
+ getProfileManagesSupervisedUsers: function() {
+ this.methodCalled('getProfileManagesSupervisedUsers');
+ return Promise.resolve(false);
+ }
};
function registerProfileInfoTests() {
@@ -71,6 +78,21 @@ cr.define('settings_people_page', function() {
peoplePage.$$('#profile-icon').src);
});
});
+
+ test('GetProfileManagesSupervisedUsers', function() {
+ return browserProxy.whenCalled('getProfileManagesSupervisedUsers').then(
+ function() {
+ Polymer.dom.flush();
+ assertFalse(!!peoplePage.$$('#manageSupervisedUsersContainer'));
+
+ cr.webUIListenerCallback(
+ 'profile-manages-supervised-users-changed',
+ true);
+
+ Polymer.dom.flush();
+ assertTrue(!!peoplePage.$$('#manageSupervisedUsersContainer'));
+ });
+ });
});
}
« no previous file with comments | « chrome/browser/ui/webui/settings/profile_info_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698