@@ -380,7 +380,7 @@ export function main() {
380380 ( view ) => expectViewHasNoDirectiveInstances ( view ) ) ;
381381 } ) ;
382382
383- it ( 'should create shadow dom' , ( ) => {
383+ it ( 'should create shadow dom (Native Strategy) ' , ( ) => {
384384 var subpv = new ProtoView ( el ( '<span>hello shadow dom</span>' ) ,
385385 new DynamicProtoChangeDetector ( ) ,
386386 null ) ;
@@ -391,14 +391,14 @@ export function main() {
391391 expect ( view . nodes [ 0 ] . shadowRoot . childNodes [ 0 ] . childNodes [ 0 ] . nodeValue ) . toEqual ( 'hello shadow dom' ) ;
392392 } ) ;
393393
394- it ( 'should use the provided shadow DOM strategy ' , ( ) => {
394+ it ( 'should emulate shadow dom (Emulated Strategy) ' , ( ) => {
395395 var subpv = new ProtoView ( el ( '<span>hello shadow dom</span>' ) ,
396396 new DynamicProtoChangeDetector ( ) , null ) ;
397397
398398 var pv = new ProtoView ( el ( '<cmp class="ng-binding"></cmp>' ) ,
399399 new DynamicProtoChangeDetector ( ) , new EmulatedShadowDomStrategy ( ) ) ;
400- var binder = pv . bindElement ( new ProtoElementInjector ( null , 0 , [ SomeComponentWithEmulatedShadowDom ] , true ) ) ;
401- binder . componentDirective = new DirectiveMetadataReader ( ) . read ( SomeComponentWithEmulatedShadowDom ) ;
400+ var binder = pv . bindElement ( new ProtoElementInjector ( null , 0 , [ SomeComponent ] , true ) ) ;
401+ binder . componentDirective = new DirectiveMetadataReader ( ) . read ( SomeComponent ) ;
402402 binder . nestedProtoView = subpv ;
403403
404404 var view = createNestedView ( pv ) ;
@@ -658,12 +658,6 @@ class SomeComponent {
658658 }
659659}
660660
661- @Component ( {
662- componentServices : [ ]
663- } )
664- class SomeComponentWithEmulatedShadowDom {
665- }
666-
667661@Decorator ( {
668662 selector : '[dec]'
669663} )
0 commit comments