@ -8,14 +8,14 @@ class PublicTestability {
|
||||
|
||||
whenStable(callback: Function) { this._testability.whenStable(callback); }
|
||||
|
||||
findBindings(using, binding: string, exactMatch: boolean): List<any> {
|
||||
findBindings(using: any, binding: string, exactMatch: boolean): List<any> {
|
||||
return this._testability.findBindings(using, binding, exactMatch);
|
||||
}
|
||||
}
|
||||
|
||||
export class GetTestability {
|
||||
static addToWindow(registry: TestabilityRegistry) {
|
||||
global.getAngularTestability = function(elem): PublicTestability {
|
||||
global.getAngularTestability = function(elem: Element): PublicTestability {
|
||||
var testability = registry.findTestabilityInTree(elem);
|
||||
|
||||
if (testability == null) {
|
||||
|
@ -47,7 +47,7 @@ export class Testability {
|
||||
|
||||
getPendingCount(): number { return this._pendingCount; }
|
||||
|
||||
findBindings(using, binding: string, exactMatch: boolean): List<any> {
|
||||
findBindings(using: any, binding: string, exactMatch: boolean): List<any> {
|
||||
// TODO(juliemr): implement.
|
||||
return [];
|
||||
}
|
||||
@ -63,11 +63,11 @@ export class TestabilityRegistry {
|
||||
getTestabilityModule.GetTestability.addToWindow(this);
|
||||
}
|
||||
|
||||
registerApplication(token, testability: Testability) {
|
||||
registerApplication(token: any, testability: Testability) {
|
||||
this._applications.set(token, testability);
|
||||
}
|
||||
|
||||
findTestabilityInTree(elem): Testability {
|
||||
findTestabilityInTree(elem: Node): Testability {
|
||||
if (elem == null) {
|
||||
return null;
|
||||
}
|
||||
|
Reference in New Issue
Block a user