angular-cn/modules/angular2/test/core
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
..
change_detection refactor(core): separate reflective injector from Injector interface 2016-04-20 11:28:13 -07:00
debug feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
di refactor(core): separate reflective injector from Injector interface 2016-04-20 11:28:13 -07:00
dom revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
facade revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
linker feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
metadata revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
profile refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
reflection revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
testability revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
util revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
zone refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00
application_ref_spec.ts feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
directive_lifecycle_integration_spec.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
forward_ref_integration_spec.dart feat: allow for forward references in injection 2015-05-15 21:12:57 -07:00
forward_ref_integration_spec.ts feat(core): separate refs from vars. 2016-04-28 01:13:40 +00:00
spies.dart refactor(view_compiler): codegen DI and Queries 2016-04-13 14:43:48 -07:00
spies.ts refactor(core): support non reflective bootstrap. 2016-04-20 11:34:11 -07:00