| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /** |
| 6 * @fileoverview |
| 7 * @suppress {checkTypes|checkVars|reportUnknownTypes} |
| 8 */ |
| 9 |
| 5 (function() { | 10 (function() { |
| 6 | 11 |
| 7 'use strict'; | 12 'use strict'; |
| 8 | 13 |
| 9 module('xhr', { | 14 module('xhr', { |
| 10 setup: function() { | 15 setup: function() { |
| 11 }, | 16 }, |
| 12 teardown: function() { | 17 teardown: function() { |
| 13 } | 18 } |
| 14 }); | 19 }); |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 | 225 |
| 221 var request = remoting.xhr.start({ | 226 var request = remoting.xhr.start({ |
| 222 method: 'POST', | 227 method: 'POST', |
| 223 url: 'http://foo.com', | 228 url: 'http://foo.com', |
| 224 onDone: remoting.xhr.defaultResponse(onDone, onError) | 229 onDone: remoting.xhr.defaultResponse(onDone, onError) |
| 225 }); | 230 }); |
| 226 request.respond(404); | 231 request.respond(404); |
| 227 }); | 232 }); |
| 228 | 233 |
| 229 })(); | 234 })(); |
| OLD | NEW |