angular-docs-cn/modules/angular2/test/test_lib
Tobias Bosch f9908cd436 feat(test): add element probe
Usage: bootstrap the app with the special binding
`ELEMENT_PROBE_CONFIG` from `angular2/debug`.
This will provide a global method `ngProbe(element)` that
will expose a `DebugElement` with directive instances, ... on it.

During tests that use Angular's test injector, the probe is
enabled by default. The `DebugElement ` can be retrieved via the
function `inspectDomElement` of `angular2/debug`. Note
that the `TestComponentBuilder` already returns `DebugElement `s.

Closes #1992
2015-05-29 12:44:21 -07:00
..
fake_async_spec.ts refactor (test/test_lib): Ts'ifying test/test_lib 2015-05-28 09:50:59 -07:00
test_component_builder_spec.ts feat(test): add element probe 2015-05-29 12:44:21 -07:00
test_lib_spec.ts refactor (test/test_lib): Ts'ifying test/test_lib 2015-05-28 09:50:59 -07:00