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

Unified Diff: remoting/webapp/crd/js/mock_xhr_unittest.js

Issue 1065733004: Added partial unit tests for host_controller.js. More to come. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@hdf-unittest
Patch Set: added licenses to satisfy presubmit Created 5 years, 8 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/mock_xhr.js ('k') | remoting/webapp/js_proto/sinon_proto.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/webapp/crd/js/mock_xhr_unittest.js
diff --git a/remoting/webapp/crd/js/mock_xhr_unittest.js b/remoting/webapp/crd/js/mock_xhr_unittest.js
index f8033542b9f458e0ee96143e2999a01fbfc8a08c..9461b84e26345007126676c3ac71aca57a9d25ea 100644
--- a/remoting/webapp/crd/js/mock_xhr_unittest.js
+++ b/remoting/webapp/crd/js/mock_xhr_unittest.js
@@ -72,16 +72,16 @@ QUnit.test('setEmptyResponseFor', function(assert) {
});
QUnit.test('setEmptyResponseFor with repeat', function(assert) {
- remoting.MockXhr.setEmptyResponseFor('GET', 'http://foo.com', true);
+ remoting.MockXhr.setEmptyResponseFor('GET', 'http://foo.com', 404, true);
var promise1 = sendRequest();
var promise2 = sendRequest();
return promise1.then(function(/** remoting.Xhr.Response */ result) {
- assert.equal(result.status, 204);
+ assert.equal(result.status, 404);
assert.equal(result.getText(), '');
assert.throws(result.getJson.bind(result));
return promise2;
}).then(function(/** remoting.Xhr.Response */ result) {
- assert.equal(result.status, 204);
+ assert.equal(result.status, 404);
assert.equal(result.getText(), '');
assert.throws(result.getJson.bind(result));
});
« no previous file with comments | « remoting/webapp/crd/js/mock_xhr.js ('k') | remoting/webapp/js_proto/sinon_proto.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698