angulardart / angular

Fast and productive web framework provided by Dart
https://pub.dev/packages/angular
MIT License
1.83k stars 232 forks source link

Testability API does support timeout and updateCb parameters for whenStable method #1939

Open rryk opened 3 years ago

rryk commented 3 years ago

Documentation: https://angular.io/api/core/Testability#whenstable

AngularJS method signature: https://github.com/angular/angular/blob/d1ea1f4c7f3358b730b0d94e65b00bc28cae279c/packages/core/src/testability/testability.ts#L198

AngularDart method signature: https://github.com/dart-lang/angular/blob/6b1137b927106a0c90447207345add5709acd7b0/angular/lib/src/core/testability/testability.dart#L73

Error message when trying to pass additional parameters: Return Value: '{"message":"error registering callback for root: NoSuchMethodError: method not found: 'call'\nReceiver: Closure 'ri' of Instance of 'minified:kC'\nArguments: [Instance of 'minified:ke', 60000, Instance of 'minified:ke']","permanentError":true,"stable":false}'