feat(core): update zone.js to 0.8.10 and expose the flush method (#16860)

`flush()` can now be used from within fakeAsync tests to simulate moving
time forward until all macrotask events have been cleared from the
event queue.
This commit is contained in:
Julie Ralph
2017-05-22 11:19:21 -07:00
committed by Chuck Jazdzewski
parent 6e41add867
commit 85d4c4b82e
6 changed files with 67 additions and 8 deletions

View File

@ -32,6 +32,9 @@ export declare function discardPeriodicTasks(): void;
/** @experimental */
export declare function fakeAsync(fn: Function): (...args: any[]) => any;
/** @experimental */
export declare function flush(maxTurns?: number): number;
/** @experimental */
export declare function flushMicrotasks(): void;