TestabilityRegistry
class
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
}
Methods
registerApplication() | ||||||
---|---|---|---|---|---|---|
Registers an application with a testability hook so that it can be tracked | ||||||
registerApplication(token: any, testability: Testability)Parameters
|
unregisterApplication() | |||
---|---|---|---|
Unregisters an application. | |||
unregisterApplication(token: any)Parameters
|
unregisterAllApplications() |
---|
Unregisters all applications |
unregisterAllApplications()ParametersThere are no parameters.
|
getTestability() | |||
---|---|---|---|
Get a testability hook associated with the application | |||
getTestability(elem: any): Testability | nullParameters
Returns
|
getAllTestabilities() |
---|
Get all registered testabilities |
getAllTestabilities(): Testability[]ParametersThere are no parameters. Returns
|
getAllRootElements() |
---|
Get all registered applications(root elements) |
getAllRootElements(): any[]ParametersThere are no parameters. Returns
|
findTestabilityInTree() | ||||||
---|---|---|---|---|---|---|
Find testability of a node in the Tree | ||||||
findTestabilityInTree(elem: Node, findInAncestors: boolean = true): Testability | nullParameters
Returns
|
© 2010–2021 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v11.angular.io/api/core/TestabilityRegistry