test(ivy): ComponentFactoryResolver can resolve any component factory in Ivy (#28465)
PR Close #28465
This commit is contained in:
parent
f640941e1d
commit
9efb39c8a2
@ -10,7 +10,7 @@ import {ANALYZE_FOR_ENTRY_COMPONENTS, Component, ComponentFactoryResolver, ɵivy
|
|||||||
import {Console} from '@angular/core/src/console';
|
import {Console} from '@angular/core/src/console';
|
||||||
import {noComponentFactoryError} from '@angular/core/src/linker/component_factory_resolver';
|
import {noComponentFactoryError} from '@angular/core/src/linker/component_factory_resolver';
|
||||||
import {TestBed} from '@angular/core/testing';
|
import {TestBed} from '@angular/core/testing';
|
||||||
import {fixmeIvy} from '@angular/private/testing';
|
import {obsoleteInIvy} from '@angular/private/testing';
|
||||||
|
|
||||||
|
|
||||||
if (ivyEnabled) {
|
if (ivyEnabled) {
|
||||||
@ -69,8 +69,7 @@ function declareTests(config?: {useJit: boolean}) {
|
|||||||
expect(childComp.cfr.resolveComponentFactory(ChildComp) !.componentType).toBe(ChildComp);
|
expect(childComp.cfr.resolveComponentFactory(ChildComp) !.componentType).toBe(ChildComp);
|
||||||
});
|
});
|
||||||
|
|
||||||
fixmeIvy(
|
obsoleteInIvy('In Ivy, the ComponentFactoryResolver can resolve any component factory')
|
||||||
'FW-805: Ivy\'s implementation of ComponentFactoryResolver doesn\'t have checks present in the view engine')
|
|
||||||
.it('should not be able to get components from a parent component (content hierarchy)',
|
.it('should not be able to get components from a parent component (content hierarchy)',
|
||||||
() => {
|
() => {
|
||||||
TestBed.overrideComponent(
|
TestBed.overrideComponent(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user