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

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

Issue 2279883004: Revert of Settings People: Add /signOut route for Disconnect dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/browser/resources/settings/route.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 9da3b8f7cefd453febae413579b5861e1290fbdc..f00d12a50f9bd6e8b185cac04dbc476247ca0d92 100644
--- a/chrome/test/data/webui/settings/people_page_test.js
+++ b/chrome/test/data/webui/settings/people_page_test.js
@@ -166,14 +166,10 @@
assertFalse(disconnectConfirm.hidden);
MockInteractions.tap(disconnectConfirm);
- // Wait for exit of dialog route.
- return new Promise(function(resolve) {
- window.addEventListener('popstate', function callback() {
- window.removeEventListener('popstate', callback);
- resolve(browserProxy.whenCalled('signOut'));
- });
- });
+ return browserProxy.whenCalled('signOut');
}).then(function(deleteProfile) {
+ Polymer.dom.flush();
+
assertFalse(deleteProfile);
cr.webUIListenerCallback('sync-status-changed', {
« no previous file with comments | « chrome/browser/resources/settings/route.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698