769835e53e
Instantiating the test component within an NgZone will let us track async tasks in event handlers and change detection. We can also do auto change detection when triggering events through dispatchEvent and not have to do fixture.detectChange() manually in the test. New API: ComponentFixture.autoDetectChanges() - This puts the fixture in auto detect mode that automatically calls detectChanges when the microtask queue is empty (Similar to how change detection is triggered in an actual application). ComponentFixture.isStable() - This returns a boolean whether the fixture is currently stable or has some async tasks that need to be completed. ComponentFixture.whenStable() - This returns a promise that is resolved when the fixture is stable after all async tasks are complete. Closes #8301 |
||
---|---|---|
.. | ||
testing | ||
browser.ts | ||
browser_static.ts | ||
common.ts | ||
common_dom.ts | ||
server.dart | ||
server.ts | ||
worker_app.dart | ||
worker_app.ts | ||
worker_render.dart | ||
worker_render.ts |