Revert "feat(core): extract platforms out of core"
This reverts commit 3f4628c0b0.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@ import {
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
|
||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||
import {XHRImpl} from 'angular2/src/compiler/xhr_impl';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
|
||||
export function main() {
|
||||
+11
-6
@@ -11,10 +11,10 @@ import {
|
||||
xit
|
||||
} from 'angular2/testing_internal';
|
||||
import {IS_DART, isPresent, stringify} from 'angular2/src/facade/lang';
|
||||
import {bootstrap} from 'angular2/platform/browser';
|
||||
import {ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {Component, Directive, View, platform} from 'angular2/core';
|
||||
import {BROWSER_PROVIDERS, BROWSER_APP_PROVIDERS} from 'angular2/platform/browser';
|
||||
import {bootstrap} from 'angular2/bootstrap';
|
||||
import {platform, applicationDomProviders} from 'angular2/src/core/application_common';
|
||||
import {applicationCommonProviders, ApplicationRef} from 'angular2/src/core/application_ref';
|
||||
import {Component, Directive, View} from 'angular2/core';
|
||||
import {DOM} from 'angular2/src/core/dom/dom_adapter';
|
||||
import {DOCUMENT} from 'angular2/render';
|
||||
import {PromiseWrapper} from 'angular2/src/facade/async';
|
||||
@@ -22,6 +22,7 @@ import {provide, Inject, Injector} from 'angular2/core';
|
||||
import {ExceptionHandler} from 'angular2/src/facade/exceptions';
|
||||
import {Testability, TestabilityRegistry} from 'angular2/src/core/testability/testability';
|
||||
import {ComponentRef_} from "angular2/src/core/linker/dynamic_component_loader";
|
||||
import {compilerProviders} from 'angular2/src/compiler/compiler';
|
||||
|
||||
@Component({selector: 'hello-app'})
|
||||
@View({template: '{{greeting}} world!'})
|
||||
@@ -162,10 +163,14 @@ export function main() {
|
||||
async.done();
|
||||
});
|
||||
}));
|
||||
|
||||
it('should unregister change detectors when components are disposed',
|
||||
inject([AsyncTestCompleter], (async) => {
|
||||
var app = platform(BROWSER_PROVIDERS).application([BROWSER_APP_PROVIDERS, testProviders]);
|
||||
var app = platform().application([
|
||||
applicationCommonProviders(),
|
||||
applicationDomProviders(),
|
||||
compilerProviders(),
|
||||
testProviders
|
||||
]);
|
||||
app.bootstrap(HelloRootCmp)
|
||||
.then((ref) => {
|
||||
ref.dispose();
|
||||
@@ -97,7 +97,6 @@ var NG_ALL = [
|
||||
'ApplicationRef.injector:js',
|
||||
'ApplicationRef.zone:js',
|
||||
'ApplicationRef.componentTypes:js',
|
||||
'APPLICATION_COMMON_PROVIDERS',
|
||||
/*
|
||||
Abstract methods
|
||||
'ApplicationRef.bootstrap()',
|
||||
@@ -127,8 +126,6 @@ var NG_ALL = [
|
||||
'Binding.toClass',
|
||||
'Binding.toFactory',
|
||||
'Binding.toValue',
|
||||
'BROWSER_APP_PROVIDERS',
|
||||
'BROWSER_PROVIDERS',
|
||||
'Provider',
|
||||
'Provider.dependencies',
|
||||
'Provider.multi',
|
||||
@@ -1235,6 +1232,7 @@ var NG_ALL = [
|
||||
'WrappedValue.wrapped=',
|
||||
'WtfScopeFn:dart',
|
||||
'ZeroArgFunction:dart',
|
||||
'applicationCommonProviders()',
|
||||
'asNativeElements()',
|
||||
'bind()',
|
||||
'provide()',
|
||||
@@ -1244,9 +1242,10 @@ var NG_ALL = [
|
||||
'inspectElement()',
|
||||
'inspectNativeElement()',
|
||||
'platform():js',
|
||||
'platformProviders()',
|
||||
'platformCommon()',
|
||||
'resolveForwardRef():js',
|
||||
'wtfCreateScope():js',
|
||||
'PLATFORM_COMMON_PROVIDERS',
|
||||
'wtfCreateScope:dart',
|
||||
'wtfEndTimeRange():js',
|
||||
'wtfEndTimeRange:dart',
|
||||
@@ -1273,7 +1272,6 @@ var NG_ALL = [
|
||||
'OnInit:dart',
|
||||
'PipeOnDestroy:dart',
|
||||
'PipeTransform:dart',
|
||||
'reflector',
|
||||
'RenderBeginCmd:dart',
|
||||
'RenderBeginCmd.isBound',
|
||||
'RenderBeginCmd.ngContentIndex',
|
||||
@@ -1349,54 +1347,6 @@ var NG_ALL = [
|
||||
'Stream.toSet():dart',
|
||||
'Stream.transform():dart',
|
||||
'Stream.where():dart',
|
||||
|
||||
"GetterFn:dart",
|
||||
"MethodFn:dart",
|
||||
"NoReflectionCapabilities:dart",
|
||||
"NoReflectionCapabilities.annotations():dart",
|
||||
"NoReflectionCapabilities.factory():dart",
|
||||
"NoReflectionCapabilities.getter():dart",
|
||||
"NoReflectionCapabilities.importUri():dart",
|
||||
"NoReflectionCapabilities.interfaces():dart",
|
||||
"NoReflectionCapabilities.isReflectionEnabled():dart",
|
||||
"NoReflectionCapabilities.method():dart",
|
||||
"NoReflectionCapabilities.moduleId():dart",
|
||||
"NoReflectionCapabilities.parameters():dart",
|
||||
"NoReflectionCapabilities.propMetadata():dart",
|
||||
"NoReflectionCapabilities.setter():dart",
|
||||
"PlatformReflectionCapabilities:dart",
|
||||
"ReflectionInfo:dart",
|
||||
"ReflectionInfo.annotations:dart",
|
||||
"ReflectionInfo.annotations=:dart",
|
||||
"ReflectionInfo.factory:dart",
|
||||
"ReflectionInfo.factory=:dart",
|
||||
"ReflectionInfo.interfaces:dart",
|
||||
"ReflectionInfo.interfaces=:dart",
|
||||
"ReflectionInfo.parameters:dart",
|
||||
"ReflectionInfo.parameters=:dart",
|
||||
"ReflectionInfo.propMetadata:dart",
|
||||
"ReflectionInfo.propMetadata=:dart",
|
||||
"Reflector:dart",
|
||||
"Reflector.annotations():dart",
|
||||
"Reflector.factory():dart",
|
||||
"Reflector.getter():dart",
|
||||
"Reflector.importUri():dart",
|
||||
"Reflector.interfaces():dart",
|
||||
"Reflector.isReflectionEnabled():dart",
|
||||
"Reflector.listUnusedKeys():dart",
|
||||
"Reflector.method():dart",
|
||||
"Reflector.parameters():dart",
|
||||
"Reflector.propMetadata():dart",
|
||||
"Reflector.reflectionCapabilities:dart",
|
||||
"Reflector.reflectionCapabilities=:dart",
|
||||
"Reflector.registerFunction():dart",
|
||||
"Reflector.registerGetters():dart",
|
||||
"Reflector.registerMethods():dart",
|
||||
"Reflector.registerSetters():dart",
|
||||
"Reflector.registerType():dart",
|
||||
"Reflector.setter():dart",
|
||||
"Reflector.trackUsage():dart",
|
||||
"SetterFn:dart"
|
||||
];
|
||||
|
||||
var NG_UPGRADE = [
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
import {Injectable, NgIf, bind} from 'angular2/core';
|
||||
import {Directive, Component, View, ViewMetadata} from 'angular2/angular2';
|
||||
import {XHR} from 'angular2/src/compiler/xhr';
|
||||
import {XHRImpl} from 'angular2/src/platform/browser/xhr_impl';
|
||||
import {XHRImpl} from 'angular2/src/compiler/xhr_impl';
|
||||
|
||||
// Services, and components for the tests.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user