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

Unified Diff: remoting/webapp/crd/js/client_session_unittest.js

Issue 1093373005: [Webapp Refactor] Cleans up the ClientSession.EventHandler interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: remoting/webapp/crd/js/client_session_unittest.js
diff --git a/remoting/webapp/crd/js/client_session_unittest.js b/remoting/webapp/crd/js/client_session_unittest.js
index 503b83d9642e73c153501816d059c7ef2a74ba1c..b178c8e06d17949aade73c7ae7deda5610c30936 100644
--- a/remoting/webapp/crd/js/client_session_unittest.js
+++ b/remoting/webapp/crd/js/client_session_unittest.js
@@ -22,8 +22,7 @@ var logToServerStub;
var SessionListener = function() {};
SessionListener.prototype.onConnectionFailed = function(error) {};
SessionListener.prototype.onConnected = function(connectionInfo) {};
-SessionListener.prototype.onDisconnected = function() {};
-SessionListener.prototype.onError = function(error) {};
+SessionListener.prototype.onDisconnected = function(error) {};
/**
* @param {remoting.ClientSession.ConnectionError=} opt_error
@@ -142,9 +141,9 @@ QUnit.test(
var State = remoting.ClientSession.State;
return connect().then(function() {
- var onError = sinon.stub(listener, 'onError');
+ var onDisconnected = sinon.stub(listener, 'onDisconnected');
session.disconnect(new remoting.Error(remoting.Error.Tag.P2P_FAILURE));
- assert.equal(onError.callCount, 1);
+ assert.equal(onDisconnected.callCount, 1);
assert.equal(logToServerStub.args[2][0], State.CONNECTION_DROPPED);
});
});

Powered by Google App Engine
This is Rietveld 408576698