Testability

Testability

Experimental Class

Class Overview

class Testability implements PublicTestability {
  constructor(_ngZone: NgZone)
  
  
  increasePendingRequestCount() : number
  decreasePendingRequestCount() : number
  isStable() : boolean
  whenStable(callback: Function) : void
  getPendingRequestCount() : number
  findBindings(using: any, provider: string, exactMatch: boolean) : any[]
  findProviders(using: any, provider: string, exactMatch: boolean) : any[]
}

Class Description

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.

Annotations

@Injectable()

Constructor

constructor(_ngZone: NgZone)

Class Details

increasePendingRequestCount() : number
decreasePendingRequestCount() : number
isStable() : boolean
whenStable(callback: Function) : void
getPendingRequestCount() : number
findBindings(using: any, provider: string, exactMatch: boolean) : any[]
findProviders(using: any, provider: string, exactMatch: boolean) : any[]

exported from core-index, defined in core/src/testability/testability.ts

© 2010–2017 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://angular.io/docs/ts/latest/api/core/index/Testability-class.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部