angular/packages/zone.js/test/common
JiaLiPassion aebf165359 fix(zone.js): should ignore multiple resolve call (#45283)
Close #44913

The following case is not handled correctly by `zone.js`.
```
const delayedPromise = new Promise((resolve) => {
  setTimeout(resolve, 1, 'timeout');
});

new Promise((resolve) => {
  resolve(delayedPromise);
  resolve('second call');
}).then(console.log);
```

It should output `timeout`, since the promise is resolved by the
1st resolve, the `second call` should be ignored.

So this is a bug that the original implementation not ensure the
`resolve` is only called once.

PR Close #45283
2022-03-25 17:31:03 -07:00
..
Error.spec.ts refactor(zone.js): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
fetch.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
microtasks.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
promise-disable-wrap-uncaught-promise-rejection.spec.ts fix(zone.js): disable wrap uncaught promise rejection should handle primitive value (#38476) 2020-09-24 11:32:44 -04:00
Promise.spec.ts fix(zone.js): should ignore multiple resolve call (#45283) 2022-03-25 17:31:03 -07:00
setInterval.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
setTimeout.spec.ts fix(zone.js): clearTimeout/clearInterval should call on object global (#37858) 2020-07-24 15:22:47 -07:00
task.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
toString.spec.ts fix(zone.js): zone.js toString patch should check typeof Promise is function (#38350) 2020-08-25 09:51:50 -07:00
util.spec.ts refactor(zone.js): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:16 -07:00
zone.spec.ts build: enable useUnknownInCatchVariables (#44679) 2022-02-01 18:17:29 +00:00