Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(649)

Unified Diff: pkg/oauth2/test/credentials_test.dart

Issue 14251006: Remove AsyncError with Expando. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/oauth2/test/client_test.dart ('k') | pkg/scheduled_test/lib/scheduled_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/oauth2/test/credentials_test.dart
diff --git a/pkg/oauth2/test/credentials_test.dart b/pkg/oauth2/test/credentials_test.dart
index 8e40a4a1709c9d254653a6888b87e58953c08d66..1ee5b7597335103c2dcedf220245f5985be55e9d 100644
--- a/pkg/oauth2/test/credentials_test.dart
+++ b/pkg/oauth2/test/credentials_test.dart
@@ -46,8 +46,8 @@ void main() {
'access token', null, tokenEndpoint);
expect(credentials.canRefresh, false);
credentials.refresh('identifier', 'secret', httpClient: httpClient)
- .catchError(expectAsync1((e) {
- expect(e.error is StateError, isTrue);
+ .catchError(expectAsync1((error) {
+ expect(error is StateError, isTrue);
}));
});
@@ -55,8 +55,8 @@ void main() {
var credentials = new oauth2.Credentials('access token', 'refresh token');
expect(credentials.canRefresh, false);
credentials.refresh('identifier', 'secret', httpClient: httpClient)
- .catchError(expectAsync1((e) {
- expect(e.error is StateError, isTrue);
+ .catchError(expectAsync1((error) {
+ expect(error is StateError, isTrue);
}));
});
« no previous file with comments | « pkg/oauth2/test/client_test.dart ('k') | pkg/scheduled_test/lib/scheduled_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698