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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: remoting/webapp/js_proto/sinon_proto.js
diff --git a/remoting/webapp/js_proto/sinon_proto.js b/remoting/webapp/js_proto/sinon_proto.js
index 9e223dc8eecc1afa9cf852c8dce89f32402e0f4d..142810674a060067948c7d7061ea10afb1c2cfa7 100644
--- a/remoting/webapp/js_proto/sinon_proto.js
+++ b/remoting/webapp/js_proto/sinon_proto.js
@@ -127,7 +127,15 @@ sinon.TestStub.prototype.onFirstCall = function() {};
/** @returns {Object} */
sinon.createStubInstance = function (/** * */ constructor) {};
-/** @return {sinon.FakeXhr} */
+/** @interface */
+sinon.FakeXhrCtrl = function() {};
+
+/**
+ * @type {?function(!sinon.FakeXhr)}
+ */
+sinon.FakeXhrCtrl.prototype.onCreate;
+
+/** @return {sinon.FakeXhrCtrl} */
sinon.useFakeXMLHttpRequest = function() {};
/** @interface */
@@ -154,8 +162,3 @@ sinon.FakeXhr.prototype.requestHeaders;
* @param {?string} content
*/
sinon.FakeXhr.prototype.respond;
-
-/**
- * @type {?function(!sinon.FakeXhr)}
- */
-sinon.FakeXhr.prototype.onCreate;
« remoting/webapp/crd/js/xhr_unittest.js ('K') | « 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