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

Unified Diff: remoting/webapp/browser_test/browser_test.js

Issue 1082383002: [Webapp Refactor] Remove remoting.clientSession. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix browser tests Created 5 years, 8 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 | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/crd/js/activity.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/browser_test/browser_test.js
diff --git a/remoting/webapp/browser_test/browser_test.js b/remoting/webapp/browser_test/browser_test.js
index 30c69622ab036719116c96057d4a846a2ede59bd..fcf616f00e2ec537514642df66968d04a9039fac 100644
--- a/remoting/webapp/browser_test/browser_test.js
+++ b/remoting/webapp/browser_test/browser_test.js
@@ -222,7 +222,12 @@ browserTest.disconnect = function() {
finishedButton = 'client-finished-it2me-button';
}
- remoting.app.disconnect();
+ var activity = remoting.app.getActivity();
+ if (!activity) {
+ return Promise.resolve();
+ }
+
+ activity.stop();
return browserTest.onUIMode(finishedMode).then(function() {
browserTest.clickOnControl(finishedButton);
« no previous file with comments | « remoting/webapp/base/js/application.js ('k') | remoting/webapp/crd/js/activity.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698