2016-06-22 17:56:10 -04:00
|
|
|
export declare class MockDirectiveResolver extends DirectiveResolver {
|
|
|
|
resolve(type: Type): DirectiveMetadata;
|
|
|
|
setProvidersOverride(type: Type, providers: any[]): void;
|
|
|
|
setViewProvidersOverride(type: Type, viewProviders: any[]): void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class MockSchemaRegistry implements ElementSchemaRegistry {
|
|
|
|
attrPropMapping: {
|
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
existingProperties: {
|
|
|
|
[key: string]: boolean;
|
|
|
|
};
|
2016-06-22 17:56:10 -04:00
|
|
|
constructor(existingProperties: {
|
|
|
|
[key: string]: boolean;
|
|
|
|
}, attrPropMapping: {
|
|
|
|
[key: string]: string;
|
|
|
|
});
|
2016-06-23 21:19:32 -04:00
|
|
|
getMappedPropName(attrName: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
hasProperty(tagName: string, property: string): boolean;
|
|
|
|
securityContext(tagName: string, property: string): SecurityContext;
|
|
|
|
}
|
|
|
|
|
|
|
|
export declare class MockViewResolver extends ViewResolver {
|
|
|
|
constructor();
|
|
|
|
overrideViewDirective(component: Type, from: Type, to: Type): void;
|
|
|
|
resolve(component: Type): ViewMetadata;
|
2016-06-23 21:19:32 -04:00
|
|
|
setAnimations(component: Type, animations: AnimationEntryMetadata[]): void;
|
|
|
|
setInlineTemplate(component: Type, template: string): void;
|
|
|
|
setView(component: Type, view: ViewMetadata): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-24 20:35:01 -04:00
|
|
|
export declare class OverridingTestComponentBuilder extends TestComponentBuilder {
|
|
|
|
constructor(injector: Injector);
|
2016-06-23 21:19:32 -04:00
|
|
|
createAsync(rootComponentType: Type): Promise<ComponentFixture<any>>;
|
2016-06-22 17:56:10 -04:00
|
|
|
overrideAnimations(componentType: Type, animations: AnimationEntryMetadata[]): TestComponentBuilder;
|
2016-06-24 20:35:01 -04:00
|
|
|
overrideDirective(componentType: Type, from: Type, to: Type): OverridingTestComponentBuilder;
|
|
|
|
overrideProviders(type: Type, providers: any[]): OverridingTestComponentBuilder;
|
|
|
|
overrideTemplate(componentType: Type, template: string): OverridingTestComponentBuilder;
|
|
|
|
overrideView(componentType: Type, view: ViewMetadata): OverridingTestComponentBuilder;
|
|
|
|
overrideViewProviders(type: Type, providers: any[]): OverridingTestComponentBuilder;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|