fix(tests): fix tests
This commit is contained in:
@ -29,7 +29,7 @@ import {
|
||||
} from 'angular2/src/core/linker/dynamic_component_loader';
|
||||
import {TestabilityRegistry, Testability} from 'angular2/src/core/testability/testability';
|
||||
import {Renderer} from 'angular2/src/core/render/api';
|
||||
import {DomRenderer, DOCUMENT} from 'angular2/src/core/render/render';
|
||||
import {DomRenderer, DomRenderer_, DOCUMENT} from 'angular2/src/core/render/render';
|
||||
import {
|
||||
SharedStylesHost,
|
||||
DomSharedStylesHost
|
||||
@ -55,7 +55,7 @@ export function applicationDomBindings(): Array<Type | Binding | any[]> {
|
||||
new Binding(EVENT_MANAGER_PLUGINS, {toClass: DomEventsPlugin, multi: true}),
|
||||
new Binding(EVENT_MANAGER_PLUGINS, {toClass: KeyEventsPlugin, multi: true}),
|
||||
new Binding(EVENT_MANAGER_PLUGINS, {toClass: HammerGesturesPlugin, multi: true}),
|
||||
DomRenderer,
|
||||
bind(DomRenderer).toClass(DomRenderer_),
|
||||
bind(Renderer).toAlias(DomRenderer),
|
||||
DomSharedStylesHost,
|
||||
bind(SharedStylesHost).toAlias(DomSharedStylesHost),
|
||||
|
@ -74,7 +74,7 @@ function _componentBindings(appComponentType: Type): Array<Type | Binding | any[
|
||||
return componentRef;
|
||||
});
|
||||
},
|
||||
[bind(DynamicComponentLoader).toClass(DynamicComponentLoader_), Injector]),
|
||||
[DynamicComponentLoader, Injector]),
|
||||
|
||||
bind(appComponentType)
|
||||
.toFactory((p: Promise<any>) => p.then(ref => ref.instance), [APP_COMPONENT_REF_PROMISE]),
|
||||
|
@ -10,7 +10,7 @@ import {Promise, PromiseWrapper} from 'angular2/src/core/facade/async';
|
||||
export abstract class RuntimeCompiler extends Compiler {}
|
||||
|
||||
@Injectable()
|
||||
export class RuntimeCompiler_ extends Compiler_ {
|
||||
export class RuntimeCompiler_ extends Compiler_ implements RuntimeCompiler {
|
||||
constructor(_protoViewFactory: ProtoViewFactory, private _templateCompiler: TemplateCompiler) {
|
||||
super(_protoViewFactory);
|
||||
}
|
||||
|
@ -135,6 +135,9 @@ export class CyclicDependencyError extends AbstractBindingError {
|
||||
* ```
|
||||
*/
|
||||
export abstract class InstantiationError extends WrappedException {
|
||||
constructor(message, originalException, originalStack, context) {
|
||||
super(message, originalException, originalStack, context);
|
||||
}
|
||||
abstract addKey(injector: Injector, key: Key): void;
|
||||
get wrapperMessage(): string { return unimplemented(); };
|
||||
get causeKey(): Key { return unimplemented(); };
|
||||
|
@ -30,7 +30,7 @@ import {
|
||||
BindingWithVisibility,
|
||||
DependencyProvider
|
||||
} from 'angular2/src/core/di/injector';
|
||||
import {resolveBinding, ResolvedFactory} from 'angular2/src/core/di/binding';
|
||||
import {resolveBinding, ResolvedFactory, ResolvedBinding_} from 'angular2/src/core/di/binding';
|
||||
|
||||
import {AttributeMetadata, QueryMetadata} from '../metadata/di';
|
||||
|
||||
@ -53,7 +53,6 @@ import {PipeBinding} from '../pipes/pipe_binding';
|
||||
|
||||
import {LifecycleHooks} from './interfaces';
|
||||
import {ViewContainerRef_} from "./view_container_ref";
|
||||
import {ResolvedBinding_} from "../di/binding";
|
||||
|
||||
var _staticKeys;
|
||||
|
||||
|
@ -1,7 +1,6 @@
|
||||
import {BaseException, unimplemented} from 'angular2/src/core/facade/exceptions';
|
||||
import {ViewRef, ViewRef_} from './view_ref';
|
||||
import {RenderViewRef, RenderElementRef, Renderer} from 'angular2/src/core/render/api';
|
||||
import {ChangeDetectorRef} from "../change_detection/change_detector_ref";
|
||||
|
||||
/**
|
||||
* Represents a location in a View that has an injection, change-detection and render context
|
||||
|
@ -1,8 +1,7 @@
|
||||
import {Type} from 'angular2/src/core/facade/lang';
|
||||
import {ResolvedFactory, resolveBinding} from 'angular2/src/core/di/binding';
|
||||
import {ResolvedFactory, resolveBinding, ResolvedBinding_} from 'angular2/src/core/di/binding';
|
||||
import {Key, ResolvedBinding, Binding} from 'angular2/src/core/di';
|
||||
import {PipeMetadata} from '../metadata/directives';
|
||||
import {ResolvedBinding_} from "../di/binding";
|
||||
|
||||
export class PipeBinding extends ResolvedBinding_ {
|
||||
constructor(public name: string, public pure: boolean, key: Key,
|
||||
|
@ -1,9 +1,15 @@
|
||||
import {Type, isPresent, isFunction, global, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {
|
||||
Type,
|
||||
isPresent,
|
||||
isFunction,
|
||||
global,
|
||||
stringify,
|
||||
ConcreteType
|
||||
} from 'angular2/src/core/facade/lang';
|
||||
import {BaseException, WrappedException} from 'angular2/src/core/facade/exceptions';
|
||||
import {ListWrapper} from 'angular2/src/core/facade/collection';
|
||||
import {GetterFn, SetterFn, MethodFn} from './types';
|
||||
import {PlatformReflectionCapabilities} from 'platform_reflection_capabilities';
|
||||
import {ConcreteType} from "../facade/lang";
|
||||
|
||||
export class ReflectionCapabilities implements PlatformReflectionCapabilities {
|
||||
private _reflect: any;
|
||||
|
@ -1,5 +1,4 @@
|
||||
import {global, Type, isFunction, stringify} from 'angular2/src/core/facade/lang';
|
||||
import {ConcreteType} from "../facade/lang";
|
||||
import {ConcreteType, global, Type, isFunction, stringify} from 'angular2/src/core/facade/lang';
|
||||
|
||||
/**
|
||||
* Declares the interface to be used with {@link Class}.
|
||||
|
@ -293,3 +293,7 @@ class NgZone {
|
||||
zoneValues: {'_innerZone': true});
|
||||
}
|
||||
}
|
||||
|
||||
class NgZone_ extends NgZone {
|
||||
NgZone_({bool enableLongStackTrace}) : super(enableLongStackTrace: enableLongStackTrace);
|
||||
}
|
||||
|
Reference in New Issue
Block a user