| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 var sinon = sinon || {}; | 5 var sinon = sinon || {}; |
| 6 | 6 |
| 7 /** @type {Object} */ | 7 /** @type {Object} */ |
| 8 sinon.assert = {}; | 8 sinon.assert = {}; |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 sinon.Spy.prototype.calledWith = function() {}; | 87 sinon.Spy.prototype.calledWith = function() {}; |
| 88 | 88 |
| 89 /** @type {function(number):{args:Array}} */ | 89 /** @type {function(number):{args:Array}} */ |
| 90 sinon.Spy.prototype.getCall = function(index) {}; | 90 sinon.Spy.prototype.getCall = function(index) {}; |
| 91 | 91 |
| 92 sinon.Spy.prototype.reset = function() {}; | 92 sinon.Spy.prototype.reset = function() {}; |
| 93 | 93 |
| 94 /** | 94 /** |
| 95 * @param {Object} obj | 95 * @param {Object} obj |
| 96 * @param {string} method | 96 * @param {string} method |
| 97 * @param {Function=} opt_stubFunction |
| 97 * @return {sinon.TestStub} | 98 * @return {sinon.TestStub} |
| 98 */ | 99 */ |
| 99 sinon.stub = function(obj, method) {}; | 100 sinon.stub = function(obj, method, opt_stubFunction) {}; |
| 100 | 101 |
| 101 /** @constructor */ | 102 /** @constructor */ |
| 102 sinon.TestStub = function() {}; | 103 sinon.TestStub = function() {}; |
| 103 | 104 |
| 104 /** @type {function(number):{args:Array}} */ | 105 /** @type {function(number):{args:Array}} */ |
| 105 sinon.TestStub.prototype.getCall = function(index) {}; | 106 sinon.TestStub.prototype.getCall = function(index) {}; |
| 106 | 107 |
| 107 sinon.TestStub.prototype.restore = function() {}; | 108 sinon.TestStub.prototype.restore = function() {}; |
| 108 | 109 |
| 109 /** @param {*} a */ | 110 /** @param {*} a */ |
| 110 sinon.TestStub.prototype.returns = function(a) {}; | 111 sinon.TestStub.prototype.returns = function(a) {}; |
| 111 | 112 |
| 112 /** @type {function(string, (string|Array<string>)=):sinon.Expectation} */ | 113 /** @type {function(string, (string|Array<string>)=):sinon.Expectation} */ |
| 113 sinon.TestStub.prototype.withArgs = function(messageName, opt_args) {}; | 114 sinon.TestStub.prototype.withArgs = function(messageName, opt_args) {}; |
| OLD | NEW |