()
| 382 | } |
| 383 | |
| 384 | export function test_getResponseHeader() { |
| 385 | const xhr = <any>new XMLHttpRequest(); |
| 386 | const response = { |
| 387 | statusCode: 200, |
| 388 | content: { |
| 389 | toString: function () { |
| 390 | return this.raw; |
| 391 | }, |
| 392 | raw: '{"data": 42}', |
| 393 | }, |
| 394 | headers: { |
| 395 | 'content-type': 'application/json', |
| 396 | }, |
| 397 | }; |
| 398 | xhr._loadResponse(response); |
| 399 | |
| 400 | TKUnit.assertEqual(xhr.getResponseHeader('Content-Type'), 'application/json'); |
| 401 | } |
| 402 | |
| 403 | export var test_XMLHttpRequest_contentReceivedArrayBufferProperly = function (done) { |
| 404 | // <snippet module="xhr" title="xhr"> |
nothing calls this directly
no test coverage detected