angular/modules/angular2/src/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
..
async.dart chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
async.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
async_test_completer.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
benchmark_util.ts refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
e2e_util.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
e2e_util.ts chore: fix DDC errors / warnings 2016-03-08 22:17:32 +00:00
fake_async.dart chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
fake_async.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
lang_utils.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
lang_utils.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
matchers.dart test(matchers): add support for toMatchPattern in tests 2016-03-09 21:31:15 -08:00
matchers.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
perf_util.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
perf_util.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00
shims_for_IE.js fix(testing): remove Symbol dummy shim 2015-12-09 02:57:19 +00:00
test_component_builder.ts feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
test_injector.ts feat(testing): Use NgZone in TestComponentBuilder. 2016-04-28 22:37:37 +00:00
testing.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
testing.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
testing_internal.dart chore: upgrade to new Zone.js API v0.6.2 2016-03-16 18:05:09 +00:00
testing_internal.ts chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
testing_internal_core.dart chore(testing): Refactor test methods to have a uniform interface. 2016-04-28 01:16:25 +00:00
utils.ts revert(format): Revert "chore(format): update to latest formatter" 2016-04-12 09:41:01 -07:00