angular/packages/zone.js/test/zone-spec
Krzysztof Platis f19b36f462 fix(zone.js): in TaskTrackingZoneSpec track a periodic task until it is cancelled (#45391)
Before this change, the macrotask for `setInterval(callback, ms)` was no
longer tracked by `TaskTrackingZoneSpec` after the `callback` was
invoked for the first time. Now the periodic macrotask is tracked until
it is cancelled, e.g. `clearInterval(id)`.

BREAKING CHANGE: in TaskTrackingZoneSpec track a periodic task until it is cancelled

The breaking change is scoped only to the plugin
`zone.js/plugins/task-tracking`. If you used `TaskTrackingZoneSpec` and
checked the pending macroTasks e.g. using `(this.ngZone as any)._inner
._parent._properties.TaskTrackingZone.getTasksFor('macroTask')`, then
its behavior slightly changed for periodic macrotasks. For example,
previously the `setInterval` macrotask was no longer tracked after its
callback was executed for the first time. Now it's tracked until
the task is explicitly cancelled, e.g  with `clearInterval(id)`.

fixes 45350

PR Close #45391
2022-03-24 10:53:36 -07:00
..
async-test.spec.ts fix(zone.js): async-test should only call done once (#45025) 2022-02-09 10:18:56 -08:00
fake-async-test.spec.ts fix(zone.js): setTimeout patch should clean tasksByHandleId cache. (#40586) 2021-02-09 10:43:05 -08:00
long-stack-trace-zone.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
proxy.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
sync-test.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
task-tracking.spec.ts fix(zone.js): in TaskTrackingZoneSpec track a periodic task until it is cancelled (#45391) 2022-03-24 10:53:36 -07:00