angular/modules/angular2/src/testing
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
..
benchmark_util.ts refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
e2e_util.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
e2e_util.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
fake_async.dart refactor(core): move facades out of core 2015-11-07 01:36:06 +00:00
fake_async.ts docs(*): Document a lot more symbols that are missing comments in our generated docs. 2015-12-15 03:04:48 +00:00
lang_utils.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
lang_utils.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
matchers.dart test(matchers): add support for toHaveCssStyle matcher 2015-11-23 22:43:01 +00:00
matchers.ts docs(*): Document a lot more symbols that are missing comments in our generated docs. 2015-12-15 03:04:48 +00:00
perf_util.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
perf_util.ts refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
shims_for_IE.js fix(testing): remove Symbol dummy shim 2015-12-09 02:57:19 +00:00
test_component_builder.ts feat(core): speed up view creation via code gen for view factories. 2016-01-05 08:56:46 -08:00
test_injector.ts feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
testing.dart refactor(test): rename test_lib to testing 2015-10-13 10:36:49 -07:00
testing.ts refactor(testing): move common testing logic into test_injector 2015-12-18 08:23:29 +00:00
testing_internal.dart refactor(testing): move common testing logic into test_injector 2015-12-18 08:23:29 +00:00
testing_internal.ts refactor(testing): move common testing logic into test_injector 2015-12-18 08:23:29 +00:00
utils.ts feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00