angular-cn/modules/@angular/platform-browser
Julie Ralph 40b907a657 refactor(testing): remove wrapping of Jasmine functions (#9564)
Instead, the async function now determines whether it should return a promise
or instead call a done function parameter. Importing Jasmine functions
from `@angular/core/testing` is no longer necessary and is now deprecated.

Additionally, beforeEachProviders is also deprecated, as it is specific
to the testing framework. Instead, use the new addProviders method directly.

Before:
```js
import {beforeEachProviders, it, describe, inject} from 'angular2/testing/core';

describe('my code', () => {
  beforeEachProviders(() => [MyService]);

  it('does stuff', inject([MyService], (service) => {
    // actual test
  });
});
```

After:
```js
import {addProviders, inject} from 'angular2/testing/core';

describe('my code', () => {
  beforeEach(() => {
    addProviders([MyService]);
  });

  it('does stuff', inject([MyService], (service) => {
    // actual test
  });
});
```
2016-06-24 17:48:35 -07:00
..
src fix(security): no warning when sanitizing escaped html (#9392) (#9413) 2016-06-23 13:06:19 -07:00
test refactor(testing): remove wrapping of Jasmine functions (#9564) 2016-06-24 17:48:35 -07:00
testing fix(common/testing): remove internal MockLocationStrategy from common/testing (#9562) 2016-06-24 12:41:57 -07:00
core_private.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
dynamic.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
index.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
package.json chore(package.json): make the packages installable 2016-05-27 17:21:34 -07:00
private_export.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
rollup.config.js fix: split dynamic bits in platform-browser into platform-browser-dynamic 2016-06-14 15:31:24 -07:00
testing.ts fix(platform-browser/testing): clean up public api for platform-browser/testing (#9519) 2016-06-23 16:42:25 -07:00
testing_e2e.ts chore(lint): Added license headers to most TypeScript files 2016-06-23 09:47:54 -07:00
tsconfig-es5.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00
tsconfig-es2015.json chore(tsickle): add @Annotation annotations 2016-06-16 12:29:46 -07:00