angular-docs-cn/modules/@angular/compiler/testing
Julie Ralph b43f95435b fix(testing): add an explicit doAsyncPrecompilation step (#10015)
This removes the magic from the `inject` test helper that would inspect
the current zone and would only work with our `async` test helper.
Now, `inject` is always synchronous, and if you are using a module
that requires async precompilation, you're required to call
`doAsyncPrecompilation` in your tests.

This is part of the breaking changes introduced with the swap
to each test having an AppModule.

Closes #9975
Closes #9593

BREAKING CHANGE:

`TestInjector` is now renamed to `TestBed`

Before:

```js
import {TestInjector, getTestInjector} from '@angular/core/testing';
```

After:

```js
import {TestBed, getTestBed} from '@angular/core/testing';
```
2016-07-20 10:51:21 -07:00
..
directive_resolver_mock.ts feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
schema_registry_mock.ts feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
test_component_builder.ts fix(testing): add an explicit doAsyncPrecompilation step (#10015) 2016-07-20 10:51:21 -07:00
view_resolver_mock.ts feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
xhr_mock.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00