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

Unified Diff: tests/lib/async/stream_subscription_as_future_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/stream_state_helper.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_subscription_as_future_test.dart
diff --git a/tests/lib/async/stream_subscription_as_future_test.dart b/tests/lib/async/stream_subscription_as_future_test.dart
index 8fe2ca6ce4ef29329b81e2aa7f097efd580447cc..5be8f7951bec3e20b2d7aad41df63b648df8433c 100644
--- a/tests/lib/async/stream_subscription_as_future_test.dart
+++ b/tests/lib/async/stream_subscription_as_future_test.dart
@@ -48,8 +48,8 @@ main() {
Stream stream = controller.stream;
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).catchError(expectAsync1((e) {
- Expect.equals(e.error, "foo");
+ subscription.asFuture(output).catchError(expectAsync1((error) {
+ Expect.equals(error, "foo");
}));
});
@@ -61,8 +61,8 @@ main() {
});
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).catchError(expectAsync1((e) {
- Expect.equals(e.error, "foo");
+ subscription.asFuture(output).catchError(expectAsync1((error) {
+ Expect.equals(error, "foo");
}));
});
}
« no previous file with comments | « tests/lib/async/stream_state_helper.dart ('k') | tests/standalone/debugger/debug_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698