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

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

Issue 2451423002: [MD Settings][People] Fixes the 'arrow icon' appearing momentarily on page refresh. (Closed)
Patch Set: Created 4 years, 2 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/resources/settings/people_page/people_page.js ('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 30b423a12cb675f7222dc0ece514fd30bb25fb8a..d29f76905fd6f8fb68ebe0954d763ba9546fcad2 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -69,6 +69,7 @@ cr.define('settings_people_page', function() {
suite('ProfileInfoTests', function() {
var peoplePage = null;
var browserProxy = null;
+ var syncBrowserProxy = null;
suiteSetup(function() {
// Force easy unlock off. Those have their own ChromeOS-only tests.
@@ -81,6 +82,9 @@ cr.define('settings_people_page', function() {
browserProxy = new TestProfileInfoBrowserProxy();
settings.ProfileInfoBrowserProxyImpl.instance_ = browserProxy;
+ syncBrowserProxy = new TestSyncBrowserProxy();
+ settings.SyncBrowserProxyImpl.instance_ = syncBrowserProxy;
+
PolymerTest.clearBody();
peoplePage = document.createElement('settings-people-page');
document.body.appendChild(peoplePage);
@@ -89,7 +93,9 @@ cr.define('settings_people_page', function() {
teardown(function() { peoplePage.remove(); });
test('GetProfileInfo', function() {
- return browserProxy.whenCalled('getProfileInfo').then(function() {
+ return Promise.all([browserProxy.whenCalled('getProfileInfo'),
+ syncBrowserProxy.whenCalled('getSyncStatus')])
+ .then(function() {
Polymer.dom.flush();
assertEquals(browserProxy.fakeProfileInfo.name,
peoplePage.$$('#profile-name').textContent.trim());
« no previous file with comments | « chrome/browser/resources/settings/people_page/people_page.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698