Testability

Experimental Class

Class Overview

class Testability {
  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 @angular/core/index, defined in @angular/core/src/testability/testability.ts

doc_Angular
2016-10-06 09:47:05
Comments
Leave a Comment

Please login to continue.