TestabilityRegistry
Class
A global registry of Testability
instances for specific elements.
API
class TestabilityRegistry {}
registerApplication
void
Registers an application with a testability hook so that it can be tracked
@paramtoken
any
token of application, root element
@returns
void
unregisterApplication
void
Unregisters an application.
@paramtoken
any
token of application, root element
@returns
void
unregisterAllApplications
void
Unregisters all applications
@returns
void
getTestability
Testability | null
Get a testability hook associated with the application
@paramelem
any
root element
@returns
Testability | null
getAllTestabilities
Get all registered testabilities
@returns
Testability[]
getAllRootElements
any[]
Get all registered applications(root elements)
@returns
any[]
findTestabilityInTree
Testability | null
Find testability of a node in the Tree
@paramelem
Node
node
@paramfindInAncestors
boolean
whether finding testability in ancestors if testability was not found in current node
@returns
Testability | null
Jump to details