angular-cn/packages/common/http/test
arturovt 61a0b6de6d fix(http): complete the request on timeout (#39807)
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 #26453

PR Close #39807
2021-02-09 14:44:17 -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 test(http): use HttpStatusCode enum in tests (#23548) 2021-01-28 09:10:48 -08: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 test(http): use HttpStatusCode enum in tests (#23548) 2021-01-28 09:10:48 -08:00
xhr_mock.ts fix(http): complete the request on timeout (#39807) 2021-02-09 14:44:17 -08:00
xhr_spec.ts fix(http): complete the request on timeout (#39807) 2021-02-09 14:44:17 -08:00
xsrf_spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00