refactor(core): remove shadow dom utility from DomAdapters (#32278)
PR Close #32278
This commit is contained in:
@ -491,7 +491,7 @@ describe('projection', () => {
|
||||
expect(main.nativeElement).toHaveText('TREE(0:TREE2(1:TREE(2:)))');
|
||||
});
|
||||
|
||||
if (getDOM().supportsNativeShadowDOM()) {
|
||||
if (supportsNativeShadowDOM()) {
|
||||
it('should support native content projection and isolate styles per component', () => {
|
||||
TestBed.configureTestingModule({declarations: [SimpleNative1, SimpleNative2]});
|
||||
TestBed.overrideComponent(MainComp, {
|
||||
@ -1032,3 +1032,7 @@ class CmpA1 {
|
||||
})
|
||||
class CmpA2 {
|
||||
}
|
||||
|
||||
function supportsNativeShadowDOM(): boolean {
|
||||
return typeof(<any>document.body).createShadowRoot === 'function';
|
||||
}
|
||||
|
Reference in New Issue
Block a user