angular-cn/tools/build
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
..
snippets chore(build): Modifies replace scripts to reflect new changes in systemjs. 2015-08-18 21:45:12 +00:00
webpack fix(bundles): rename UMD bundles 2015-12-15 10:24:32 +00:00
benchpress.js refactor(perf): e2e tests and benchpress should be written in es6 2015-01-06 15:32:49 -08:00
bundle.js chore(build): replace traceur-runtime with es6-shim. 2015-09-14 21:02:29 +00:00
dart.js chore(docgen): Use updated dartdoc tool 2015-08-31 19:30:22 +00:00
dartanalyzer.js build(gulp): lazy-require modules in order to improve startup time 2015-11-30 21:36:57 +00:00
dartapidocs.js build(gulp): lazy-require modules in order to improve startup time 2015-11-30 21:36:57 +00:00
file2modulename.js feat(perf): change detection profiler 2015-09-09 01:12:58 +00:00
jsserve.js chore(build): Make PRs 15m faster. 2015-07-21 22:14:38 -07:00
licensewrap.js feat(license): include license files in dev and dev.sfx bundles 2015-07-13 14:01:56 -07:00
linknodemodules.js feat(build): Allow building in windows without admin priviledges 2015-07-08 16:10:23 -07:00
logging.js build(gulp): turn off dartfmt logs by default 2015-05-22 12:18:42 -04:00
proto.js chore(dart/transform): Integrate protoc into gulp build 2015-09-15 08:39:07 -07:00
protoc-gen-dart refactor(dart/transform): Update protobuf dependencies 2015-10-19 10:32:17 -07:00
protoc.js chore(dart/transform): Integrate protoc into gulp build 2015-09-15 08:39:07 -07:00
pubbuild.js chore(analytics): Build hello_world, check constraints 2015-11-23 20:10:04 +00:00
pubget.js build(travis): add travis log folding for verbose tasks 2015-10-03 21:33:57 +00:00
pubserve.js refactor(compiler): use the new compiler everywhere 2015-10-01 18:48:27 -07:00
run_server_dart_tests.js feat(test): allow tests to specify the platform and application providers used 2016-01-13 02:11:06 +00:00
rundartpackage.js feat(build): auto format the generated dart code. 2015-01-30 11:10:12 -08:00
util.js chore(build): remove obsolete html.js, copy.js, srcFolderInsertion. 2015-04-14 11:54:36 -07:00
watch.js chore(build): watch logger should honor `ignoreInitial` option 2015-06-02 14:07:36 -04:00
watch.spec.js chore(build): watch logger should honor `ignoreInitial` option 2015-06-02 14:07:36 -04:00