TestabilityRegistry
实例的全局注册表,用于特定元素。
A global registry of Testability
instances for specific elements.
Testability
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 | ||||||
参数
返回值
|