From b953956a356f52ec08584124f44a33ea1fd2a627 Mon Sep 17 00:00:00 2001 From: Victor Berchet Date: Tue, 10 Feb 2015 18:18:19 +0100 Subject: [PATCH] refactor(view_spec): Drop SomeComponentWithEmulatedShadowDom --- modules/angular2/test/core/compiler/view_spec.js | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/modules/angular2/test/core/compiler/view_spec.js b/modules/angular2/test/core/compiler/view_spec.js index 7b49c1d862..7635b93b8d 100644 --- a/modules/angular2/test/core/compiler/view_spec.js +++ b/modules/angular2/test/core/compiler/view_spec.js @@ -380,7 +380,7 @@ export function main() { (view) => expectViewHasNoDirectiveInstances(view)); }); - it('should create shadow dom', () => { + it('should create shadow dom (Native Strategy)', () => { var subpv = new ProtoView(el('hello shadow dom'), new DynamicProtoChangeDetector(), null); @@ -391,14 +391,14 @@ export function main() { expect(view.nodes[0].shadowRoot.childNodes[0].childNodes[0].nodeValue).toEqual('hello shadow dom'); }); - it('should use the provided shadow DOM strategy', () => { + it('should emulate shadow dom (Emulated Strategy)', () => { var subpv = new ProtoView(el('hello shadow dom'), new DynamicProtoChangeDetector(), null); var pv = new ProtoView(el(''), new DynamicProtoChangeDetector(), new EmulatedShadowDomStrategy()); - var binder = pv.bindElement(new ProtoElementInjector(null, 0, [SomeComponentWithEmulatedShadowDom], true)); - binder.componentDirective = new DirectiveMetadataReader().read(SomeComponentWithEmulatedShadowDom); + var binder = pv.bindElement(new ProtoElementInjector(null, 0, [SomeComponent], true)); + binder.componentDirective = new DirectiveMetadataReader().read(SomeComponent); binder.nestedProtoView = subpv; var view = createNestedView(pv); @@ -658,12 +658,6 @@ class SomeComponent { } } -@Component({ - componentServices: [] -}) -class SomeComponentWithEmulatedShadowDom { -} - @Decorator({ selector: '[dec]' })