| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 sinon.TestStub.prototype.returns = function(a) {}; | 119 sinon.TestStub.prototype.returns = function(a) {}; |
| 120 | 120 |
| 121 /** @type {function(...):sinon.Expectation} */ | 121 /** @type {function(...):sinon.Expectation} */ |
| 122 sinon.TestStub.prototype.withArgs = function() {}; | 122 sinon.TestStub.prototype.withArgs = function() {}; |
| 123 | 123 |
| 124 /** @type {function(...):sinon.Expectation} */ | 124 /** @type {function(...):sinon.Expectation} */ |
| 125 sinon.TestStub.prototype.onFirstCall = function() {}; | 125 sinon.TestStub.prototype.onFirstCall = function() {}; |
| 126 | 126 |
| 127 /** @returns {Object} */ | 127 /** @returns {Object} */ |
| 128 sinon.createStubInstance = function (/** * */ constructor) {}; | 128 sinon.createStubInstance = function (/** * */ constructor) {}; |
| 129 |
| 130 /** @return {sinon.FakeXhr} */ |
| 131 sinon.useFakeXMLHttpRequest = function() {}; |
| 132 |
| 133 /** @interface */ |
| 134 sinon.FakeXhr = function() {}; |
| 135 |
| 136 /** @type {string} */ |
| 137 sinon.FakeXhr.prototype.method; |
| 138 |
| 139 /** @type {string} */ |
| 140 sinon.FakeXhr.prototype.url; |
| 141 |
| 142 /** @type {boolean} */ |
| 143 sinon.FakeXhr.prototype.withCredentials; |
| 144 |
| 145 /** @type {?string} */ |
| 146 sinon.FakeXhr.prototype.requestBody; |
| 147 |
| 148 /** @type {!Object<string,string>} */ |
| 149 sinon.FakeXhr.prototype.requestHeaders; |
| 150 |
| 151 /** |
| 152 * @param {number} status |
| 153 * @param {!Object<string,string>} headers |
| 154 * @param {?string} content |
| 155 */ |
| 156 sinon.FakeXhr.prototype.respond; |
| 157 |
| 158 /** |
| 159 * @type {?function(!sinon.FakeXhr)} |
| 160 */ |
| 161 sinon.FakeXhr.prototype.onCreate; |
| OLD | NEW |