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

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

Issue 1003433002: Updated remoting.xhr API to use promises. Removed access to the native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@spy-promise
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/js_proto/qunit_proto.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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
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;
OLDNEW
« no previous file with comments | « remoting/webapp/js_proto/qunit_proto.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698