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

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

Issue 2241563003: MD Settings / User Manager: fix blurry avatar icons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests Created 4 years, 4 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/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 424e4be44ca773c3325fb05cf18446feab95f5f6..f00d12a50f9bd6e8b185cac04dbc476247ca0d92 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -93,8 +93,8 @@ cr.define('settings_people_page', function() {
Polymer.dom.flush();
assertEquals(browserProxy.fakeProfileInfo.name,
peoplePage.$$('#profile-name').textContent.trim());
- assertEquals(browserProxy.fakeProfileInfo.iconUrl,
- peoplePage.$$('#profile-icon').src);
+ var bg = peoplePage.$$('#profile-icon').style.backgroundImage;
+ assertTrue(bg.includes(browserProxy.fakeProfileInfo.iconUrl));
cr.webUIListenerCallback(
'profile-info-changed',
@@ -103,8 +103,8 @@ cr.define('settings_people_page', function() {
Polymer.dom.flush();
assertEquals('pushedName',
peoplePage.$$('#profile-name').textContent.trim());
- assertEquals('http://pushed-url/',
- peoplePage.$$('#profile-icon').src);
+ var newBg = peoplePage.$$('#profile-icon').style.backgroundImage;
+ assertTrue(newBg.includes('http://pushed-url/'));
});
});

Powered by Google App Engine
This is Rietveld 408576698