import {HtmlParser} from '@angular/compiler/src/html_parser'; import {PreparsedElement, PreparsedElementType, preparseElement} from '@angular/compiler/src/template_preparser'; import {afterEach, beforeEach, beforeEachProviders, ddescribe, describe, expect, iit, inject, it, xdescribe, xit} from '@angular/core/testing/testing_internal'; export function main() { describe('preparseElement', () => { var htmlParser: any /** TODO #9100 */; beforeEach(inject([HtmlParser], (_htmlParser: HtmlParser) => { htmlParser = _htmlParser; })); function preparse(html: string): PreparsedElement { return preparseElement(htmlParser.parse(html, 'TestComp').rootNodes[0]); } it('should detect script elements', inject([HtmlParser], (htmlParser: HtmlParser) => { expect(preparse('