refactor: export core APIs from angular2/core

This change moves many APIs to the angular2/core export.

This change also automatically adds FORM_BINDINGS in
the application root injector.

BREAKING CHANGE:
    Many dependencies that were previously exported from specific
    APIs are now exported from angular2/core. Affected exports, which
    should now be included from angular2/core include:

    angular2/forms
    angular2/di
    angular2/directives
    angular2/change_detection
    angular2/bootstrap (except for dart users)
    angular2/render
    angular2/metadata
    angular2/debug
    angular2/pipes
Closes #3977
This commit is contained in:
Jeff Cross
2015-09-03 22:01:36 -07:00
parent 6d13cf9b8f
commit f14b212dc9
286 changed files with 739 additions and 690 deletions

View File

@ -4,7 +4,7 @@ import {Promise} from 'angular2/src/core/facade/async';
function waitForElement(selector) {
var EC = (<any>protractor).ExpectedConditions;
// Waits for the element with id 'abc' to be present on the dom.
browser.wait(EC.presenceOf($(selector)), 10000);
browser.wait(EC.presenceOf($(selector)), 20000);
}
describe('routing inbox-app', function() {

View File

@ -9,14 +9,14 @@ describe('WebWorkers Kitchen Sink', function() {
it('should greet', () => {
browser.get(URL);
browser.wait(protractor.until.elementLocated(by.css(selector)), 5000);
browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
expect(element.all(by.css(selector)).first().getText()).toEqual("hello world!");
});
it('should change greeting', () => {
browser.get(URL);
browser.wait(protractor.until.elementLocated(by.css(selector)), 5000);
browser.wait(protractor.until.elementLocated(by.css(selector)), 15000);
element(by.css("hello-app .changeButton")).click();
var elem = element(by.css(selector));
browser.wait(protractor.until.elementTextIs(elem, "howdy world!"), 5000);
@ -25,7 +25,7 @@ describe('WebWorkers Kitchen Sink', function() {
it("should display correct key names", () => {
browser.get(URL);
browser.wait(protractor.until.elementLocated(by.css(".sample-area")), 5000);
browser.wait(protractor.until.elementLocated(by.css(".sample-area")), 15000);
var area = element.all(by.css(".sample-area")).first();
expect(area.getText()).toEqual('(none)');

View File

@ -28,5 +28,5 @@ describe("MessageBroker", function() {
});
function waitForBootstrap(): void {
browser.wait(protractor.until.elementLocated(by.css("app h1")), 5000);
browser.wait(protractor.until.elementLocated(by.css("app h1")), 15000);
}

View File

@ -16,5 +16,5 @@ describe('WebWorkers Todo', function() {
});
function waitForBootstrap(): void {
browser.wait(protractor.until.elementLocated(by.css("todo-app #todoapp")), 5000);
browser.wait(protractor.until.elementLocated(by.css("todo-app #todoapp")), 15000);
}