Spec-Zone.ru › Angular 2

Тестируемость

Experimental Class

Обзор класса

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[]
}

Описание класса

Сервис Testability предоставляет крючки для тестирования, к которым можно получить доступ из браузера и таких сервисов, как Protractor. Каждый запущенный в браузере Angular-приложение будет иметь экземпляр Testability.

Аннотации

@Injectable()

Конструктор

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[]

экспортировано из @angular/core/index, определено в @angular/core/src/testability/testability.ts

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API