import {describe, xit, it, expect, beforeEach, ddescribe, iit, el} from 'test_lib/test_lib'; import {DOM} from 'facade/dom'; import {Injector} from 'di/di'; import {Lexer, Parser, ChangeDetector} from 'change_detection/change_detection'; import {Compiler, CompilerCache} from 'core/compiler/compiler'; import {DirectiveMetadataReader} from 'core/compiler/directive_metadata_reader'; import {Decorator, Component} from 'core/annotations/annotations'; import {TemplateConfig} from 'core/annotations/template_config'; import {NgElement} from 'core/dom/element'; import {NgNonBindable} from 'directives/ng_non_bindable'; export function main() { describe('ng-non-bindable', () => { var view, cd, compiler, component; beforeEach(() => { compiler = new Compiler(null, new DirectiveMetadataReader(), new Parser(new Lexer()), new CompilerCache()); }); function createView(pv) { component = new TestComponent(); view = pv.instantiate(null); view.hydrate(new Injector([]), null, component); cd = new ChangeDetector(view.recordRange); } function compileWithTemplate(template) { return compiler.compile(TestComponent, el(template)); } it('should not interpolate children', (done) => { var template = '