GetTestability

Adapter interface for retrieving the Testability service associated for a particular context.

      
      interface GetTestability {
  addToWindow(registry: TestabilityRegistry): void
  findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null
}
    

方法

addToWindow(registry: TestabilityRegistry): void
      
      addToWindow(registry: TestabilityRegistry): void
    
参数
registry TestabilityRegistry
返回值

void

findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null
      
      findTestabilityInTree(registry: TestabilityRegistry, elem: any, findInAncestors: boolean): Testability | null
    
参数
registry TestabilityRegistry
elem any
findInAncestors boolean
返回值

Testability | null