angular-cn/packages/zone.js/test/browser
JiaLiPassion 27358eb60f feat(zone.js): monkey patches queueMicrotask() (#38904)
Close #38863

Monkey patches `queueMicrotask()` API, so the callback runs in the zone
when scheduled, and also the task is run as `microTask`.

```
Zone.current.fork({
  name: 'queueMicrotask',
  onScheduleTask: (delegate: ZoneDelegate, curr: Zone, target: Zone, task: Task) => {
    logs.push(task.type);
    logs.push(task.source);
    return delegate.scheduleTask(target, task);
  }
}).run(() => {
    queueMicrotask(() => {
      expect(logs).toEqual(['microTask', 'queueMicrotask']);
      expect(Zone.current.name).toEqual('queueMicrotask');
      done();
  });
});

```

PR Close #38904
2020-11-05 11:23:33 -08:00
..
FileReader.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
HTMLImports.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
MediaQuery.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
MutationObserver.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
Notification.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 fix(zone.js): should invoke xhr send task when no response error occurs (#38836) 2020-09-18 11:19:37 -07:00
browser.spec.ts test(zone.js): do not run tests on IE 9 and IE 10 (#39189) 2020-10-12 08:27:25 -07: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 build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
element.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
geolocation.spec.manual.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
queue-microtask.spec.ts feat(zone.js): monkey patches queueMicrotask() (#38904) 2020-11-05 11:23:33 -08:00
registerElement.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
requestAnimationFrame.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00
shadydom.spec.ts build: update license headers to reference Google LLC (#37205) 2020-05-26 14:26:58 -04:00