Revert "feat(renderer): use a comment instead of an element when stamping out <template> elements"
This reverts commit bb9cfe6f36.
This commit is contained in:
@@ -475,19 +475,6 @@ export function main() {
|
||||
});
|
||||
}));
|
||||
|
||||
it('should use a comment while stamping out `<template>` elements.',
|
||||
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async) => {
|
||||
tcb.overrideView(MyComp, new ViewMetadata({template: '<template></template>'}))
|
||||
|
||||
.createAsync(MyComp)
|
||||
.then((fixture) => {
|
||||
var childNodesOfWrapper = DOM.childNodes(fixture.debugElement.nativeElement);
|
||||
expect(childNodesOfWrapper.length).toBe(1);
|
||||
expect(DOM.isCommentNode(childNodesOfWrapper[0])).toBe(true);
|
||||
async.done();
|
||||
});
|
||||
}));
|
||||
|
||||
it('should support template directives via `template` attribute.',
|
||||
inject([TestComponentBuilder, AsyncTestCompleter], (tcb: TestComponentBuilder, async) => {
|
||||
tcb.overrideView(
|
||||
|
||||
Reference in New Issue
Block a user