(fn: Function)
| 24 | |
| 25 | // Schedules a microtasks (using queueMicrotask) |
| 26 | function microTask(fn: Function): void { |
| 27 | queueMicrotask(() => { |
| 28 | // We do double dispatch so that we can wait for queueMicrotask in the Testability when |
| 29 | // NgZone becomes stable. |
| 30 | queueMicrotask(() => fn()); |
| 31 | }); |
| 32 | } |
| 33 | |
| 34 | class NoopGetTestability implements GetTestability { |
| 35 | addToWindow(registry: TestabilityRegistry): void {} |