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

Unified Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 2007133006: Use svg icon to avoid lazy loading of Polymer elements for user pods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests with regard to the latest changes while tests were disabled Created 4 years, 7 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
Index: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
diff --git a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
index 8b5e009310a070b2f1779f86209c51be7efb7911..92ca4224dbcba716448372685255fe43c2cf0323 100644
--- a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
+++ b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
@@ -21,8 +21,8 @@ var TestProfileBrowserProxy = function() {
'getExistingSupervisedUsers',
]);
- /** @private {!Array<string>} */
- this.iconUrls_ = [];
+ /** @private {!Array<!AvatarIcon>} */
+ this.icons_ = [];
/** @private {!Array<SignedInUser>} */
this.signedInUsers_ = [];
@@ -38,10 +38,10 @@ TestProfileBrowserProxy.prototype = {
__proto__: settings.TestBrowserProxy.prototype,
/**
- * @param {!Array<string>} iconUrls
+ * @param {!Array<!AvatarIcon>} icons
*/
- setIconUrls: function(iconUrls) {
- this.iconUrls_ = iconUrls;
+ setIcons: function(icons) {
+ this.icons_ = icons;
},
/**
@@ -68,7 +68,7 @@ TestProfileBrowserProxy.prototype = {
/** @override */
getAvailableIcons: function() {
this.methodCalled('getAvailableIcons');
- cr.webUIListenerCallback('profile-icons-received', this.iconUrls_);
+ cr.webUIListenerCallback('profile-icons-received', this.icons_);
cr.webUIListenerCallback('profile-defaults-received',
this.defaultProfileInfo_);
},

Powered by Google App Engine
This is Rietveld 408576698