Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(143)

Side by Side Diff: remoting/webapp/js_proto/sinon_proto.js

Issue 1028683004: Added better error and OAuth support in xhr.js. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « remoting/webapp/crd/js/xhr_unittest.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
144 /** @type {number} */
145 sinon.FakeXhr.prototype.readyState;
146
136 /** @type {string} */ 147 /** @type {string} */
137 sinon.FakeXhr.prototype.method; 148 sinon.FakeXhr.prototype.method;
138 149
139 /** @type {string} */ 150 /** @type {string} */
140 sinon.FakeXhr.prototype.url; 151 sinon.FakeXhr.prototype.url;
141 152
142 /** @type {boolean} */ 153 /** @type {boolean} */
143 sinon.FakeXhr.prototype.withCredentials; 154 sinon.FakeXhr.prototype.withCredentials;
144 155
145 /** @type {?string} */ 156 /** @type {?string} */
146 sinon.FakeXhr.prototype.requestBody; 157 sinon.FakeXhr.prototype.requestBody;
147 158
148 /** @type {!Object<string,string>} */ 159 /** @type {!Object<string,string>} */
149 sinon.FakeXhr.prototype.requestHeaders; 160 sinon.FakeXhr.prototype.requestHeaders;
150 161
151 /** 162 /**
152 * @param {number} status 163 * @param {number} status
153 * @param {!Object<string,string>} headers 164 * @param {!Object<string,string>} headers
154 * @param {?string} content 165 * @param {?string} content
155 */ 166 */
156 sinon.FakeXhr.prototype.respond; 167 sinon.FakeXhr.prototype.respond;
157 168
158 /** 169 /**
159 * @type {?function(!sinon.FakeXhr)} 170 * @param {string} event
171 * @param {Function} handler
160 */ 172 */
161 sinon.FakeXhr.prototype.onCreate; 173 sinon.FakeXhr.prototype.addEventListener;
OLDNEW
« no previous file with comments | « remoting/webapp/crd/js/xhr_unittest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698