angular/packages/zone.js/test/browser
Paul Gschwendtner 6fed377140 test: update tests to not run jasmine done function in sync-test zone from describe block
There are some ZoneJS tests that fork the zone from the `describe` block
for testing the zone patching. This does cause the Jasmine `done`
function later in `it` specs to be invoked in the sync-test zone from
the original `describe` block. The `done` implementation now has
changed with the Karma Jasmine update and breaks because it now causes
tasks to be scheduled.

It is conceptually incorrect/invalid to take the describe sync zone and
run test logic with that sync zone.

```
 An error was thrown in afterAll
  error properties: Object({ originalStack: 'Error: Cannot call jasmine.execute().forceTask from within a sync test (syncTestZone for jasmine.describe#FileReader).
      at new ZoneAwareError (packages/zone.js/test/browser_test_rollup.umd.js:98:37)
      at e.onScheduleTask (packages/zone.js/bundles/zone-testing-bundle.umd.min.js:158:196)
      at e.scheduleTask (packages/zone.js/bundles/zone-testing-bundle.umd.min.js:14:7529)
      at t.scheduleTask (packages/zone.js/bundles/zone-testing-bundle.umd.min.js:14:3539)
      at t.scheduleMicroTask (packages/zone.js/bundles/zone-testing-bundle.umd.min.js:14:3791)
      at r.execute (packages/zone.js/bundles/zone-testing-bundle.umd.min.js:166:4312)
      at queueRunnerFa ...
      at <Jasmine>
```
2022-07-18 19:19:00 +02:00
..
browser.spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00
custom-element.spec.js build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
define-property.spec.ts fix(zone.js): defineProperties should also set symbol props (#45098) 2022-03-03 12:22:05 -08:00
element.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
FileReader.spec.ts test: update tests to not run jasmine done function in sync-test zone from describe block 2022-07-18 19:19:00 +02:00
geolocation.spec.manual.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
HTMLImports.spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00
MediaQuery.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
messageport.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
MutationObserver.spec.ts test: update tests to not run jasmine done function in sync-test zone from describe block 2022-07-18 19:19:00 +02:00
Notification.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
queue-microtask.spec.ts feat(zone.js): monkey patches queueMicrotask() (#38904) 2020-11-05 11:23:33 -08:00
registerElement.spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00
requestAnimationFrame.spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00
shadydom.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
WebSocket.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
Worker.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
XMLHttpRequest.spec.ts test: update tests to account for karma-jasmine v5.0.0 2022-07-18 19:19:00 +02:00