Testability
The Testability service provides testing hooks that can be accessed from the browser and by services such as Protractor. Each bootstrapped Angular application on the page will have an instance of Testability.
class Testability implements PublicTestability {
increasePendingRequestCount(): number
decreasePendingRequestCount(): number
isStable(): boolean
whenStable(doneCb: Function, timeout?: number, updateCb?: Function): void
getPendingRequestCount(): number
findProviders(using: any, provider: string, exactMatch: boolean): any[]
}
Methods
Increases the number of pending request |
Deprecated pending requests are now tracked with zones. ParametersThere are no parameters. Returns
|
Decreases the number of pending request |
Deprecated pending requests are now tracked with zones ParametersThere are no parameters. Returns
|
Whether an associated application is stable |
ParametersThere are no parameters. Returns
|
Get the number of pending requests |
Deprecated pending requests are now tracked with zones ParametersThere are no parameters. Returns
|
Find providers by name |