TestabilityRegistry
A global registry of Testability
instances for specific elements.
class TestabilityRegistry {
registerApplication(token: any, testability: Testability)
unregisterApplication(token: any)
unregisterAllApplications()
getTestability(elem: any): Testability | null
getAllTestabilities(): Testability[]
getAllRootElements(): any[]
findTestabilityInTree(elem: Node, findInAncestors: boolean = true): Testability | null
}
方法
Registers an application with a testability hook so that it can be tracked | ||||||
参数
|
Unregisters an application. |
Unregisters all applications |
参数没有参数。 |
Get a testability hook associated with the application |
Get all registered testabilities |
Get all registered applications(root elements) |
参数没有参数。 返回值
|
Find testability of a node in the Tree | ||||||
参数
返回值
|