angular-cn/modules/@angular/core/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
..
async.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
async.ts fix: public api surface fixes + stability markers 2016-06-28 07:39:40 -07:00
async_test_completer.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
component_fixture.ts feat(browser): use AppModules for bootstrap in the browser 2016-07-02 20:35:09 -07:00
fake_async.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
fake_async.ts fix: public api surface fixes + stability markers 2016-06-28 07:39:40 -07:00
lang_utils.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
lang_utils.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
logger.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
mock_animation_player.ts refactor(animations): move MockAnimationPlayer back into core (#9966) 2016-07-11 10:55:47 -07:00
mock_application_ref.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
ng_zone_mock.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
test_bed.ts fix(testing): add an explicit doAsyncPrecompilation step (#10015) 2016-07-20 10:51:21 -07:00
test_component_builder.ts feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
testing.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
testing.ts fix(testing): add an explicit doAsyncPrecompilation step (#10015) 2016-07-20 10:51:21 -07:00
testing_internal.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
testing_internal.ts fix(testing): add an explicit doAsyncPrecompilation step (#10015) 2016-07-20 10:51:21 -07:00