angular-cn/modules/angular2/test
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
..
alt_router feat(router): add Router and RouterOutlet 2016-04-25 22:41:33 +00:00
animate revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
common fix(build): Resolve Dart analyzer issues with the Dart dev channel 2016-04-28 20:35:56 +00:00
compiler fix(metadata): Do not attach module names to metadata. 2016-04-28 01:58:13 +00:00
core feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
facade revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
http style(global): group multiple imports from same module 2016-04-26 22:40:30 +00:00
i18n feat(i18n): add support for nested expansion forms 2016-04-18 19:38:12 +00:00
mock style(global): group multiple imports from same module 2016-04-26 22:40:30 +00:00
platform fix(build): Resolve Dart analyzer issues with the Dart dev channel 2016-04-28 20:35:56 +00:00
router fix(build): Resolve Dart analyzer issues with the Dart dev channel 2016-04-28 20:35:56 +00:00
symbol_inspector refactor(Location): out of router and into platform/common 2016-04-20 04:28:47 +00:00
testing feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
upgrade revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
web_workers feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
dev_mode_spec.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
public_api_spec.ts feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00