import {describe, xit, it, expect, beforeEach, ddescribe, iit, el} from 'angular2/test_lib'; import {DOM} from 'angular2/src/facade/dom'; import {Map, MapWrapper} from 'angular2/src/facade/collection'; import {Type, isPresent} from 'angular2/src/facade/lang'; import {Injector} from 'angular2/di'; import {Lexer, Parser, ChangeDetector, dynamicChangeDetection} from 'angular2/change_detection'; import {Compiler, CompilerCache} from 'angular2/src/core/compiler/compiler'; import {DirectiveMetadataReader} from 'angular2/src/core/compiler/directive_metadata_reader'; import {NativeShadowDomStrategy} from 'angular2/src/core/compiler/shadow_dom_strategy'; import {Decorator, Component} from 'angular2/src/core/annotations/annotations'; import {Template} from 'angular2/src/core/annotations/template'; import {TemplateLoader} from 'angular2/src/core/compiler/template_loader'; import {TemplateResolver} from 'angular2/src/core/compiler/template_resolver'; import {NgElement} from 'angular2/src/core/dom/element'; import {NonBindable} from 'angular2/src/directives/non_bindable'; export function main() { describe('non-bindable', () => { var view, cd, compiler, component, tplResolver; beforeEach(() => { tplResolver = new FakeTemplateResolver(); compiler = new Compiler(dynamicChangeDetection, new TemplateLoader(null), new DirectiveMetadataReader(), new Parser(new Lexer()), new CompilerCache(), new NativeShadowDomStrategy(), tplResolver); }); function createView(pv) { component = new TestComponent(); view = pv.instantiate(null, null); view.hydrate(new Injector([]), null, component); cd = view.changeDetector; } function compileWithTemplate(html) { var template = new Template({ inline: html, directives: [NonBindable, TestDecorator] }); tplResolver.setTemplate(TestComponent, template); return compiler.compile(TestComponent); } it('should not interpolate children', (done) => { var template = '