import { ddescribe, describe, xdescribe, it, iit, xit, expect, beforeEach, afterEach, AsyncTestCompleter, inject, beforeEachBindings } from 'angular2/testing_internal'; import {HtmlParser} from 'angular2/src/compiler/html_parser'; import { preparseElement, PreparsedElementType, PreparsedElement } from 'angular2/src/compiler/template_preparser'; export function main() { describe('preparseElement', () => { var htmlParser; beforeEach(inject([HtmlParser], (_htmlParser: HtmlParser) => { htmlParser = _htmlParser; })); function preparse(html: string): PreparsedElement { return preparseElement(htmlParser.parse(html, '')[0]); } it('should detect script elements', inject([HtmlParser], (htmlParser: HtmlParser) => { expect(preparse('