mode_edit codeAPI / @angular/coreGetTestabilitylinkinterface 试验性的Adapter interface for retrieving the Testability service associated for a particular context.interface GetTestability { addToWindow(registry: TestabilityRegistry): void findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null }方法linkaddToWindow() linkmode_edit codeaddToWindow(registry: TestabilityRegistry): void参数registryType: TestabilityRegistry.返回值voidfindTestabilityInTree() linkmode_edit codefindTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null参数registryType: TestabilityRegistry.elemType: any.findInAncestorsType: boolean.返回值Testability | null