mode_edit codeAPI / @angular/core/testingTestComponentRendererlinkclass 试验性的An abstract class for inserting the root test component element in a platform independent way.class TestComponentRenderer { insertRootElement(rootElementId: string) }方法linkinsertRootElement() linkmode_edit codeinsertRootElement(rootElementId: string)参数rootElementIdType: string.