angular-cn/modules/angular2/platform
Vikram Subramanian 769835e53e feat(testing): Use NgZone in TestComponentBuilder.
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
2016-04-28 22:37:37 +00:00
..
testing feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
browser.ts chore: Remove AngularEntrypoint from TS 2016-04-25 17:35:05 +00:00
browser_static.ts chore: Remove AngularEntrypoint from TS 2016-04-25 17:35:05 +00:00
common.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
common_dom.ts refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
server.dart refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
server.ts refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
worker_app.dart refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
worker_app.ts chore: Remove AngularEntrypoint from TS 2016-04-25 17:35:05 +00:00
worker_render.dart fix(build): Resolve Dart analyzer issues with the Dart dev channel 2016-04-28 20:35:56 +00:00
worker_render.ts refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00