angular-cn/modules/angular2/test/testing
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
..
static_assets fix(testing): remove test zone for now and rely on returned promises 2016-01-22 00:28:48 +00:00
fake_async_spec.ts feat(test): Implement fakeAsync using the FakeAsyncTestZoneSpec from zone.js. 2016-04-21 22:11:00 +00:00
test_component_builder_spec.ts feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
testing_internal_spec.ts fix(build): Resolve Dart analyzer issues with the Dart dev channel 2016-04-28 20:35:56 +00:00
testing_public_browser_spec.dart feat(tests): manage asynchronous tests using zones 2016-04-18 15:59:07 -07:00
testing_public_browser_spec.ts style(global): group multiple imports from same module 2016-04-26 22:40:30 +00:00
testing_public_spec.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
testing_public_spec.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
utils_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00