| Index: remoting/webapp/crd/js/mock_xhr.js
|
| diff --git a/remoting/webapp/crd/js/mock_xhr.js b/remoting/webapp/crd/js/mock_xhr.js
|
| index 706badbf82fbc69d44afc39953c51a52606a9ec2..4fa5954acd8e798e5ad2bbb490243fe7023f6f23 100644
|
| --- a/remoting/webapp/crd/js/mock_xhr.js
|
| +++ b/remoting/webapp/crd/js/mock_xhr.js
|
| @@ -184,12 +184,14 @@ remoting.MockXhr.setResponseFor = function(
|
| *
|
| * @param {?string} method
|
| * @param {?string|!RegExp} urlPattern
|
| + * @param {number=} opt_status
|
| * @param {boolean=} opt_reuse
|
| */
|
| -remoting.MockXhr.setEmptyResponseFor = function(method, urlPattern, opt_reuse) {
|
| +remoting.MockXhr.setEmptyResponseFor = function(
|
| + method, urlPattern, opt_status, opt_reuse) {
|
| remoting.MockXhr.setResponseFor(
|
| method, urlPattern, function(/** remoting.MockXhr */ xhr) {
|
| - xhr.setEmptyResponse(204);
|
| + xhr.setEmptyResponse(opt_status == null ? 204 : opt_status);
|
| }, opt_reuse);
|
| };
|
|
|
|
|