angular/packages/common/http/test
arturovt a2a5b4add5 fix(http): complete the request on timeout (#40771)
When using the [timeout attribute](https://xhr.spec.whatwg.org/#the-timeout-attribute) and an XHR
request times out, browsers trigger the `timeout` event (and execute the XHR's `ontimeout`
callback). Additionally, Safari 9 handles timed-out requests in the same way, even if no `timeout`
has been explicitly set on the XHR.

In the above cases, `HttpClient` would fail to capture the XHR's completing (with an error), so
the corresponding `Observable` would never complete.

PR Close #40771
2021-02-11 09:13:40 -08:00
..
BUILD.bazel test: setup circular dependency tests for all entry points (#34774) 2020-01-23 11:36:40 -08:00
client_spec.ts fix(common): add boolean to valid json for testing (#37893) 2020-10-05 17:07:41 -07:00
headers_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jsonp_mock.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
jsonp_spec.ts fix(http): queue jsonp <script> tag onLoad event handler in microtask (#39512) 2020-11-17 13:09:08 -08:00
module_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
params_spec.ts feat(common): implement appendAll() method on HttpParams (#20930) 2021-01-21 14:01:34 -08:00
request_spec.ts docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
response_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
xhr_mock.ts fix(http): complete the request on timeout (#40771) 2021-02-11 09:13:40 -08:00
xhr_spec.ts fix(http): complete the request on timeout (#40771) 2021-02-11 09:13:40 -08:00
xsrf_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00