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

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
« no previous file with comments | « remoting/webapp/crd/js/xhr_unittest.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..a34d76aff4c913f490b452d34bacfa181401c25b 100644
--- a/remoting/webapp/js_proto/sinon_proto.js
+++ b/remoting/webapp/js_proto/sinon_proto.js
@@ -127,12 +127,23 @@ 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 */
sinon.FakeXhr = function() {};
+/** @type {number} */
+sinon.FakeXhr.prototype.readyState;
+
/** @type {string} */
sinon.FakeXhr.prototype.method;
@@ -156,6 +167,7 @@ sinon.FakeXhr.prototype.requestHeaders;
sinon.FakeXhr.prototype.respond;
/**
- * @type {?function(!sinon.FakeXhr)}
+ * @param {string} event
+ * @param {Function} handler
*/
-sinon.FakeXhr.prototype.onCreate;
+sinon.FakeXhr.prototype.addEventListener;
« 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