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}} */ |