angular-cn/tools
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
..
analytics chore(analytics): Build hello_world, check constraints 2015-11-23 20:10:04 +00:00
broccoli feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
build feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
cjs-jasmine feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
code.angularjs.org chore(publish): add Rx bundles to code.angularjs.org publish step 2015-12-15 17:12:42 +00:00
karma fix(build): fix source maps 2015-11-24 19:33:27 +00:00
npm build(npm): don't rely on fs-extra when purging node_modules 2015-07-01 09:19:03 -07:00
travis build(travis): add travis log folding for verbose tasks 2015-10-03 21:33:57 +00:00
tslint fix(lint): enforce that module-private members have @internal. 2015-10-28 22:14:48 +00:00
check-environment.js build: improve the environmental check and warnings 2015-12-02 13:03:51 -08:00
chromedriverpatch.js chore(testing): update protractor to version 2.1.0 2015-05-20 17:28:23 -07:00
jsconfig.json chore(vscode): add jsconfig.json and remove .settings dir 2015-10-29 13:53:21 +00:00
tsconfig.json chore(typescript 1.6 upgrade): fix build.tools 2015-09-25 20:15:55 +00:00
tsd.json chore(typescript 1.6 upgrade): fix build.tools 2015-09-25 20:15:55 +00:00
utils.inc feat(bundle): add script to push bundles to code.angularjs.org 2015-04-14 14:50:53 -07:00