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

Unified Diff: tests/lib/async/futures_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 | « tests/lib/async/future_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/futures_test.dart
diff --git a/tests/lib/async/futures_test.dart b/tests/lib/async/futures_test.dart
index 7ae1d7eaaf680b3cf7082d19979f338e2535f94e..9dc9b1c26998fdf1b44a32d581d78ba5f7362053 100644
--- a/tests/lib/async/futures_test.dart
+++ b/tests/lib/async/futures_test.dart
@@ -53,8 +53,8 @@ Future testWaitWithSingleError() {
return Future.wait(futures).then((_) {
throw 'incorrect error';
- }).catchError((e) {
- Expect.equals('correct error', e.error);
+ }).catchError((error) {
+ Expect.equals('correct error', error);
});
}
@@ -69,8 +69,8 @@ Future testWaitWithMultipleErrors() {
return Future.wait(futures).then((_) {
throw 'incorrect error 2';
- }).catchError((e) {
- Expect.equals('correct error', e.error);
+ }).catchError((error) {
+ Expect.equals('correct error', error);
});
}
@@ -96,8 +96,8 @@ Future testForEachWithException() {
return new Future.immediate(null);
}).then((_) {
throw 'incorrect exception';
- }).catchError((e) {
- Expect.equals('correct exception', e.error);
+ }).catchError((error) {
+ Expect.equals('correct exception', error);
});
}
« no previous file with comments | « tests/lib/async/future_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698