fix(typings): update test.typings for abstract superclasses
This commit is contained in:
@@ -24,6 +24,7 @@ import {Compiler} from 'angular2/src/core/linker/compiler';
|
||||
import {ProtoViewFactory} from 'angular2/src/core/linker/proto_view_factory';
|
||||
import {reflector, ReflectionInfo} from 'angular2/src/core/reflection/reflection';
|
||||
import {AppProtoView} from 'angular2/src/core/linker/view';
|
||||
import {Compiler_} from "../../../src/core/linker/compiler";
|
||||
|
||||
export function main() {
|
||||
describe('Compiler', () => {
|
||||
@@ -36,7 +37,8 @@ export function main() {
|
||||
protoViewFactorySpy = new SpyProtoViewFactory();
|
||||
someProtoView = new AppProtoView(null, null, null, null, null, null);
|
||||
protoViewFactorySpy.spy('createHost').andReturn(someProtoView);
|
||||
return [bind(ProtoViewFactory).toValue(protoViewFactorySpy), Compiler];
|
||||
return
|
||||
[bind(ProtoViewFactory).toValue(protoViewFactorySpy), bind(Compiler).toClass(Compiler_)];
|
||||
});
|
||||
|
||||
beforeEach(inject([Compiler], (_compiler) => {
|
||||
|
||||
@@ -40,12 +40,11 @@ import {
|
||||
import {OnDestroy} from 'angular2/lifecycle_hooks';
|
||||
import {bind, Injector, Binding, Optional, Inject, Injectable, Self, SkipSelf, InjectMetadata, Host, HostMetadata, SkipSelfMetadata} from 'angular2/core';
|
||||
import {ViewContainerRef} from 'angular2/src/core/linker/view_container_ref';
|
||||
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
import {TemplateRef, TemplateRef_} from 'angular2/src/core/linker/template_ref';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {DynamicChangeDetector, ChangeDetectorRef, Parser, Lexer} from 'angular2/src/core/change_detection/change_detection';
|
||||
import {QueryList} from 'angular2/src/core/linker/query_list';
|
||||
import {AppView, AppViewContainer} from "angular2/src/core/linker/view";
|
||||
import {TemplateRef_} from "../../../src/core/linker/template_ref";
|
||||
|
||||
function createDummyView(detector = null): AppView {
|
||||
var res = new SpyView();
|
||||
|
||||
@@ -82,7 +82,7 @@ import {
|
||||
import {QueryList} from 'angular2/src/core/linker/query_list';
|
||||
|
||||
import {ViewContainerRef} from 'angular2/src/core/linker/view_container_ref';
|
||||
import {ViewRef} from 'angular2/src/core/linker/view_ref';
|
||||
import {ViewRef, ViewRef_} from 'angular2/src/core/linker/view_ref';
|
||||
|
||||
import {Compiler} from 'angular2/src/core/linker/compiler';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
@@ -90,7 +90,7 @@ import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
|
||||
import {DomRenderer} from 'angular2/src/core/render/dom/dom_renderer';
|
||||
import {IS_DART} from '../../platform';
|
||||
import {ViewRef_} from "../../../src/core/linker/view_ref";
|
||||
import {Compiler_} from "../../../src/core/linker/compiler";
|
||||
|
||||
const ANCHOR_ELEMENT = CONST_EXPR(new OpaqueToken('AnchorElement'));
|
||||
|
||||
@@ -1020,7 +1020,7 @@ export function main() {
|
||||
describe('dynamic ViewContainers', () => {
|
||||
|
||||
it('should allow to create a ViewContainerRef at any bound location',
|
||||
inject([TestComponentBuilder, AsyncTestCompleter, Compiler],
|
||||
inject([TestComponentBuilder, AsyncTestCompleter, bind(Compiler).toClass(Compiler_)],
|
||||
(tcb: TestComponentBuilder, async, compiler) => {
|
||||
tcb.overrideView(MyComp, new ViewMetadata({
|
||||
template: '<div><dynamic-vp #dynamic></dynamic-vp></div>',
|
||||
|
||||
@@ -16,12 +16,9 @@ import {
|
||||
|
||||
import {SpyView, SpyAppViewManager} from '../spies';
|
||||
import {AppView, AppViewContainer} from 'angular2/src/core/linker/view';
|
||||
import {ViewContainerRef} from 'angular2/src/core/linker/view_container_ref';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {ViewRef} from 'angular2/src/core/linker/view_ref';
|
||||
import {ViewContainerRef_} from "../../../src/core/linker/view_container_ref";
|
||||
import {ViewRef_} from "../../../src/core/linker/view_ref";
|
||||
import {ElementRef_} from "../../../src/core/linker/element_ref";
|
||||
import {ViewContainerRef, ViewContainerRef_} from 'angular2/src/core/linker/view_container_ref';
|
||||
import {ElementRef, ElementRef_} from 'angular2/src/core/linker/element_ref';
|
||||
import {ViewRef, ViewRef_} from 'angular2/src/core/linker/view_ref';
|
||||
|
||||
export function main() {
|
||||
// TODO(tbosch): add missing tests
|
||||
|
||||
@@ -17,9 +17,15 @@ import {SpyRenderer, SpyAppViewPool, SpyAppViewListener, SpyProtoViewFactory} fr
|
||||
import {Injector, bind} from 'angular2/core';
|
||||
|
||||
import {AppProtoView, AppView, AppViewContainer, ViewType} from 'angular2/src/core/linker/view';
|
||||
import {ProtoViewRef, ViewRef, internalView} from 'angular2/src/core/linker/view_ref';
|
||||
import {
|
||||
ProtoViewRef,
|
||||
ProtoViewRef_,
|
||||
ViewRef,
|
||||
ViewRef_,
|
||||
internalView
|
||||
} from 'angular2/src/core/linker/view_ref';
|
||||
import {ElementRef} from 'angular2/src/core/linker/element_ref';
|
||||
import {TemplateRef} from 'angular2/src/core/linker/template_ref';
|
||||
import {TemplateRef, TemplateRef_} from 'angular2/src/core/linker/template_ref';
|
||||
import {
|
||||
Renderer,
|
||||
RenderViewRef,
|
||||
@@ -27,7 +33,7 @@ import {
|
||||
RenderFragmentRef,
|
||||
RenderViewWithFragments
|
||||
} from 'angular2/src/core/render/api';
|
||||
import {AppViewManager} from 'angular2/src/core/linker/view_manager';
|
||||
import {AppViewManager, AppViewManager_} from 'angular2/src/core/linker/view_manager';
|
||||
import {AppViewManagerUtils} from 'angular2/src/core/linker/view_manager_utils';
|
||||
|
||||
import {
|
||||
@@ -38,10 +44,6 @@ import {
|
||||
createNestedElBinder,
|
||||
createProtoElInjector
|
||||
} from './view_manager_utils_spec';
|
||||
import {ProtoViewRef_} from "../../../src/core/linker/view_ref";
|
||||
import {ViewRef_} from "../../../src/core/linker/view_ref";
|
||||
import {AppViewManager_} from "../../../src/core/linker/view_manager";
|
||||
import {TemplateRef_} from "../../../src/core/linker/template_ref";
|
||||
|
||||
export function main() {
|
||||
// TODO(tbosch): add missing tests
|
||||
|
||||
Reference in New Issue
Block a user