angular-cn/modules/angular2/platform
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
..
testing feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
browser.ts docs(core): Myriad of documentation changes including lots of new example code. 2015-12-10 15:23:57 -08:00
browser_static.ts feat(dart/transform): Introduce @AngularEntrypoint() 2015-12-01 13:34:29 -08:00
common_dom.ts refactor(core): move EventManager from core to platform/dom 2015-11-30 22:24:35 +00:00
server.dart refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
server.ts refactor(core): move render/dom from core 2015-11-17 15:53:55 -08:00
worker_app.dart refactor(WebWorker): Make WebWorker bootstrap synchronous 2015-12-14 21:04:46 +00:00
worker_app.ts refactor(WebWorker): Make WebWorker bootstrap synchronous 2015-12-14 21:04:46 +00:00
worker_render.dart refactor(WebWorker): Use the new generic bootstrap. 2015-12-03 19:51:43 +00:00
worker_render.ts refactor(WebWorker): Use the new generic bootstrap. 2015-12-03 19:51:43 +00:00