angular-cn/modules/@angular/compiler/test
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
..
animation feat(animations): allow animation integration support into host params 2016-07-12 14:55:36 -07:00
expression_parser refactor(Lexer): add types 2016-07-12 15:26:03 -07:00
i18n feat(ICU): enable ICU extraction even when when in is not used 2016-07-12 16:57:39 -07:00
output Revert "fix(compiler): Generates function expressions as returning any (#9980)" 2016-07-13 15:41:30 -07:00
schema refactor(HmtlLexer): cleanup 2016-07-12 15:26:03 -07:00
compile_metadata_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
css_lexer_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
css_parser_spec.ts refactor(core): ensure CSS parser uses ParseSourceSpan to track ast locations 2016-07-06 11:22:45 -07:00
css_visitor_spec.ts refactor(core): ensure CSS parser uses ParseSourceSpan to track ast locations 2016-07-06 11:22:45 -07:00
directive_lifecycle_spec.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
directive_lifecycle_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
directive_normalizer_spec.ts feat(testing): add implicit test module 2016-07-06 18:04:19 -07:00
directive_resolver_spec.ts fix(DirectiveResolver): throw on duplicate Input & Output names 2016-07-11 16:38:06 -07:00
expander_spec.ts feat(ICU): enable ICU extraction even when when in is not used 2016-07-12 16:57:39 -07:00
html_ast_spec_utils.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
html_lexer_spec.ts test(HtmlLexer): Add test for "{" and "{{" escaping 2016-07-12 15:26:03 -07:00
html_parser_spec.ts refactor(HmtlLexer): cleanup 2016-07-12 15:26:03 -07:00
metadata_resolver_fixture.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
metadata_resolver_fixture.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
metadata_resolver_spec.ts refactor(core): deprecate `coreBootstrap`, `PLATFORM_PIPES/DIRECTIVES` providers and `ComponentResolver` 2016-07-08 15:31:50 -07:00
runtime_compiler_spec.ts feat(testing): add implicit test module 2016-07-06 18:04:19 -07:00
selector_spec.ts fix(testing): remove deprecated testing APIs (#9923) 2016-07-11 16:04:32 -07:00
shadow_css_spec.ts fix(platform-browser/testing): clean up public api for platform-browser/testing (#9519) 2016-06-23 16:42:25 -07:00
spies.dart repackaging: all the file moves 2016-05-01 20:51:00 -07:00
spies.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
style_url_resolver_spec.ts fix(testing): remove deprecated testing APIs (#9923) 2016-07-11 16:04:32 -07:00
template_parser_spec.ts feat(ICU): enable ICU extraction even when when in is not used 2016-07-12 16:57:39 -07:00
template_preparser_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
test_bindings.ts feat(testing): add implicit test module 2016-07-06 18:04:19 -07:00
test_component_builder_spec.ts fix(testing): add an explicit doAsyncPrecompilation step (#10015) 2016-07-20 10:51:21 -07:00
url_resolver_spec.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
util_spec.ts fix(SyncAsyncResult): fix default async value (#10013) 2016-07-12 13:55:06 -07:00
view_resolver_mock_spec.ts feat(compiler): support sync runtime compile 2016-06-28 10:26:16 -07:00
view_resolver_spec.ts fix(testing): remove deprecated testing APIs (#9923) 2016-07-11 16:04:32 -07:00
xhr_mock_spec.ts chore(api): clean up compiler/testing api (#9520) 2016-06-23 15:52:18 -07:00