angular-cn/modules/angular2/test/compiler
Julie Ralph b0cebdba6b feat(test): allow tests to specify the platform and application providers used
With providers split into bundles, the test injector is now able to
use providers for a given bundle. Suggested provider lists for tests are
available in `angular2/platform/testing/<platform>`.

Change the providers for a test suite using `setBaseTestProviders`. This
should be done once at the start of the test suite, before any test cases
run.

BREAKING CHANGE: Tests are now required to use `setBaseTestProviders`
to set up. Assuming your tests are run on a browser, setup would change
as follows.

Before:

```js
// Somewhere in test setup
import {BrowserDomAdapter} from 'angular2/src/platform/browser/browser_adapter';
BrowserDomAdapter.makeCurrent
```

After:

```js
// Somewhere in the test setup
import {setBaseTestProviders} from 'angular2/testing';
import {
  TEST_BROWSER_PLATFORM_PROVIDERS,
  TEST_BROWSER_APPLICATION_PROVIDERS
} from 'angular2/platform/testing/browser';

setBaseTestProviders(TEST_BROWSER_PLATFORM_PROVIDERS,
                     TEST_BROWSER_APPLICATION_PROVIDERS);
```

Closes #5351, Closes #5585

Closes #5975
2016-01-13 02:11:06 +00:00
..
schema fix(compiler): support properties on SVG elements 2015-12-08 02:18:07 +00:00
change_definition_factory_spec.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
change_detector_compiler_spec.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
change_detector_mocks.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
directive_metadata_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
eval_module.dart chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
eval_module.ts docs: fix some typos in comments and strings 2015-12-17 22:57:43 +00:00
eval_module_spec.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
html_lexer_spec.ts fix(HtmlLexer): tag name must follow "<" without space 2015-12-08 02:39:17 +00:00
html_parser_spec.ts feat: camelCase Angular (kebab-case removal) 2015-12-09 19:59:40 -08:00
legacy_template_spec.ts feat(camelCase Angular): legacy template transformer 2015-12-09 19:59:40 -08:00
runtime_compiler_spec.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
runtime_metadata_spec.ts feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
schema_registry_mock.ts refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
selector_spec.ts feat: camelCase Angular (kebab-case removal) 2015-12-09 19:59:40 -08:00
shadow_css_spec.ts docs: fix some typos in comments and strings 2015-12-17 22:57:43 +00:00
source_module_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
spies.dart feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
spies.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
style_compiler_import.css.shim.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
style_compiler_import.css.ts refactor(compiler): make all commands const 2015-11-09 10:59:08 -08:00
style_compiler_spec.ts refactor(tests): rename beforeEachBindings -> beforeEachProviders 2015-12-02 14:09:13 -08:00
style_url_resolver_spec.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
template_compiler_spec.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
template_normalizer_spec.ts docs: fix some typos in comments and strings 2015-12-17 22:57:43 +00:00
template_parser_spec.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
template_preparser_spec.ts refactor(tests): rename beforeEachBindings -> beforeEachProviders 2015-12-02 14:09:13 -08:00
test_bindings.ts chore(core): move compiler out of core 2015-11-05 14:44:52 -08:00
url_resolver_spec.ts feat(core): provide support for relative assets for components 2015-12-09 16:28:49 -08:00
util_spec.ts fix(styles): Escape \r characters in compiled text 2015-12-11 19:48:43 +00:00
xhr_mock_spec.ts docs: fix some typos in comments and strings 2015-12-17 22:57:43 +00:00