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

Unified Diff: remoting/webapp/js_proto/sinon_proto.js

Issue 1060793003: Added unit test for HostDaemonFacade. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mock-xhr
Patch Set: license 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/js_proto/qunit_proto.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/js_proto/sinon_proto.js
diff --git a/remoting/webapp/js_proto/sinon_proto.js b/remoting/webapp/js_proto/sinon_proto.js
index a34d76aff4c913f490b452d34bacfa181401c25b..c0aac4c8c45d4d3499a1c1df872d1fbf2688d31b 100644
--- a/remoting/webapp/js_proto/sinon_proto.js
+++ b/remoting/webapp/js_proto/sinon_proto.js
@@ -73,7 +73,7 @@ sinon.spy = function() {};
* the following can be used to add the sinon.spy functions:
* {(sinon.Spy|function():void)}
*
- * @constructor
+ * @interface
*/
sinon.Spy = function() {};
@@ -81,13 +81,13 @@ sinon.Spy = function() {};
sinon.Spy.prototype.callCount;
/** @type {boolean} */
-sinon.Spy.prototype.called = false;
+sinon.Spy.prototype.called;
/** @type {boolean} */
-sinon.Spy.prototype.calledOnce = false;
+sinon.Spy.prototype.calledOnce;
/** @type {boolean} */
-sinon.Spy.prototype.calledTwice = false;
+sinon.Spy.prototype.calledTwice;
/** @type {function(...):boolean} */
sinon.Spy.prototype.calledWith = function() {};
@@ -99,6 +99,9 @@ sinon.Spy.prototype.reset = function() {};
sinon.Spy.prototype.restore = function() {};
+/** @type {Array<Array<*>>} */
+sinon.Spy.prototype.args;
+
/**
* @param {Object} obj
* @param {string} method
@@ -107,7 +110,11 @@ sinon.Spy.prototype.restore = function() {};
*/
sinon.stub = function(obj, method, opt_stubFunction) {};
-/** @constructor */
+/**
+ * TODO(jrw): rename to |sinon.Stub| for consistency
+ * @interface
+ * @extends {sinon.Spy}
+ */
sinon.TestStub = function() {};
/** @type {function(number):{args:Array}} */
« no previous file with comments | « remoting/webapp/js_proto/qunit_proto.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698