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[]
}
方法
Increases the number of pending request |
Deprecated pending requests are now tracked with zones. 参数没有参数。 返回值 |
Decreases the number of pending request |
Deprecated pending requests are now tracked with zones 参数没有参数。 返回值 |
Whether an associated application is stable |
参数没有参数。 返回值
|
Wait for the application to be stable with a timeout. If the timeout is reached before that happens, the callback receives a list of the macro tasks that were pending, otherwise null. | |||||||||
参数
返回值
|
Get the number of pending requests |
Deprecated pending requests are now tracked with zones 参数没有参数。 返回值 |
Find providers by name |