| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 79 |
| 80 /** @type {number} */ | 80 /** @type {number} */ |
| 81 sinon.Spy.prototype.callCount; | 81 sinon.Spy.prototype.callCount; |
| 82 | 82 |
| 83 /** @type {boolean} */ | 83 /** @type {boolean} */ |
| 84 sinon.Spy.prototype.called = false; | 84 sinon.Spy.prototype.called = false; |
| 85 | 85 |
| 86 /** @type {boolean} */ | 86 /** @type {boolean} */ |
| 87 sinon.Spy.prototype.calledOnce = false; | 87 sinon.Spy.prototype.calledOnce = false; |
| 88 | 88 |
| 89 /** @type {boolean} */ |
| 90 sinon.Spy.prototype.calledTwice = false; |
| 91 |
| 89 /** @type {function(...):boolean} */ | 92 /** @type {function(...):boolean} */ |
| 90 sinon.Spy.prototype.calledWith = function() {}; | 93 sinon.Spy.prototype.calledWith = function() {}; |
| 91 | 94 |
| 92 /** @type {function(number):{args:Array}} */ | 95 /** @type {function(number):{args:Array}} */ |
| 93 sinon.Spy.prototype.getCall = function(index) {}; | 96 sinon.Spy.prototype.getCall = function(index) {}; |
| 94 | 97 |
| 95 sinon.Spy.prototype.reset = function() {}; | 98 sinon.Spy.prototype.reset = function() {}; |
| 96 | 99 |
| 97 sinon.Spy.prototype.restore = function() {}; | 100 sinon.Spy.prototype.restore = function() {}; |
| 98 | 101 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 116 sinon.TestStub.prototype.returns = function(a) {}; | 119 sinon.TestStub.prototype.returns = function(a) {}; |
| 117 | 120 |
| 118 /** @type {function(...):sinon.Expectation} */ | 121 /** @type {function(...):sinon.Expectation} */ |
| 119 sinon.TestStub.prototype.withArgs = function() {}; | 122 sinon.TestStub.prototype.withArgs = function() {}; |
| 120 | 123 |
| 121 /** @type {function(...):sinon.Expectation} */ | 124 /** @type {function(...):sinon.Expectation} */ |
| 122 sinon.TestStub.prototype.onFirstCall = function() {}; | 125 sinon.TestStub.prototype.onFirstCall = function() {}; |
| 123 | 126 |
| 124 /** @returns {Object} */ | 127 /** @returns {Object} */ |
| 125 sinon.createStubInstance = function (/** * */ constructor) {}; | 128 sinon.createStubInstance = function (/** * */ constructor) {}; |
| OLD | NEW |