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
}
Provided in
-
'platform'
Methods
registerApplication() | ||||||
---|---|---|---|---|---|---|
Registers an application with a testability hook so that it can be tracked |
||||||
Parameters
|
unregisterApplication() |
---|
Unregisters an application. |
unregisterAllApplications() |
---|
Unregisters all applications |
ParametersThere are no parameters. |
getTestability() | |||
---|---|---|---|
Get a testability hook associated with the application |
|||
Parameters
Returns
|
getAllTestabilities() |
---|
Get all registered testabilities |
getAllRootElements() |
---|
Get all registered applications(root elements) |
ParametersThere are no parameters. Returns
|
findTestabilityInTree() | ||||||
---|---|---|---|---|---|---|
Find testability of a node in the Tree |
||||||
Parameters
Returns
|