| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 129 |
| 130 /** @return {sinon.FakeXhr} */ | 130 /** @interface */ |
| 131 sinon.FakeXhrCtrl = function() {}; |
| 132 |
| 133 /** |
| 134 * @type {?function(!sinon.FakeXhr)} |
| 135 */ |
| 136 sinon.FakeXhrCtrl.prototype.onCreate; |
| 137 |
| 138 /** @return {sinon.FakeXhrCtrl} */ |
| 131 sinon.useFakeXMLHttpRequest = function() {}; | 139 sinon.useFakeXMLHttpRequest = function() {}; |
| 132 | 140 |
| 133 /** @interface */ | 141 /** @interface */ |
| 134 sinon.FakeXhr = function() {}; | 142 sinon.FakeXhr = function() {}; |
| 135 | 143 |
| 136 /** @type {string} */ | 144 /** @type {string} */ |
| 137 sinon.FakeXhr.prototype.method; | 145 sinon.FakeXhr.prototype.method; |
| 138 | 146 |
| 139 /** @type {string} */ | 147 /** @type {string} */ |
| 140 sinon.FakeXhr.prototype.url; | 148 sinon.FakeXhr.prototype.url; |
| 141 | 149 |
| 142 /** @type {boolean} */ | 150 /** @type {boolean} */ |
| 143 sinon.FakeXhr.prototype.withCredentials; | 151 sinon.FakeXhr.prototype.withCredentials; |
| 144 | 152 |
| 145 /** @type {?string} */ | 153 /** @type {?string} */ |
| 146 sinon.FakeXhr.prototype.requestBody; | 154 sinon.FakeXhr.prototype.requestBody; |
| 147 | 155 |
| 148 /** @type {!Object<string,string>} */ | 156 /** @type {!Object<string,string>} */ |
| 149 sinon.FakeXhr.prototype.requestHeaders; | 157 sinon.FakeXhr.prototype.requestHeaders; |
| 150 | 158 |
| 151 /** | 159 /** |
| 152 * @param {number} status | 160 * @param {number} status |
| 153 * @param {!Object<string,string>} headers | 161 * @param {!Object<string,string>} headers |
| 154 * @param {?string} content | 162 * @param {?string} content |
| 155 */ | 163 */ |
| 156 sinon.FakeXhr.prototype.respond; | 164 sinon.FakeXhr.prototype.respond; |
| 157 | |
| 158 /** | |
| 159 * @type {?function(!sinon.FakeXhr)} | |
| 160 */ | |
| 161 sinon.FakeXhr.prototype.onCreate; | |
| OLD | NEW |