fix(Testability): fix type error in getAllAngularTestability (dart)

This fixes the following type error that is thrown when calling getAllAngularTestability() while running Dartium in checked mode:

type 'MappedListIterable' is not a subtype of type 'List<PublicTestability>' of 'publicTestabilities'.
This commit is contained in:
Michael Goderbauer 2015-08-06 19:23:29 -07:00 committed by Hank Duan
parent a1c53eec6b
commit 574bbea747
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class GetTestability {
});
js.context['getAllAngularTestabilities'] = _jsify(() {
List<Testability> testabilities = registry.getAllTestabilities();
List<PublicTestability> publicTestabilities = testabilities
var publicTestabilities = testabilities
.map((testability) => new PublicTestability(testability));
return _jsify(publicTestabilities);
});