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

Unified Diff: tests/lib/async/stream_single_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_event_transform_test.dart ('k') | tests/lib/async/stream_state_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_single_test.dart
diff --git a/tests/lib/async/stream_single_test.dart b/tests/lib/async/stream_single_test.dart
index 3bc889ab01d8ac58b0828e510805542c32d08bc1..fe0b384fee2068c4d6b1440b105ee43f48436bd4 100644
--- a/tests/lib/async/stream_single_test.dart
+++ b/tests/lib/async/stream_single_test.dart
@@ -22,14 +22,14 @@ main() {
test("single empty", () {
StreamController c = new StreamController();
Future f = c.stream.single;
- f.catchError(expectAsync1((e) { Expect.isTrue(e.error is StateError); }));
+ f.catchError(expectAsync1((error) { Expect.isTrue(error is StateError); }));
new Events.fromIterable([]).replay(c);
});
test("single error", () {
StreamController c = new StreamController();
Future f = c.stream.single;
- f.catchError(expectAsync1((e) { Expect.equals("error", e.error); }));
+ f.catchError(expectAsync1((error) { Expect.equals("error", error); }));
Events errorEvents = new Events()..error("error")..close();
errorEvents.replay(c);
});
@@ -37,7 +37,7 @@ main() {
test("single error 2", () {
StreamController c = new StreamController();
Future f = c.stream.single;
- f.catchError(expectAsync1((e) { Expect.equals("error", e.error); }));
+ f.catchError(expectAsync1((error) { Expect.equals("error", error); }));
Events errorEvents = new Events()..error("error")..error("error2")..close();
errorEvents.replay(c);
});
@@ -45,7 +45,7 @@ main() {
test("single error 3", () {
StreamController c = new StreamController();
Future f = c.stream.single;
- f.catchError(expectAsync1((e) { Expect.equals("error", e.error); }));
+ f.catchError(expectAsync1((error) { Expect.equals("error", error); }));
Events errorEvents = new Events()..add(499)..error("error")..close();
errorEvents.replay(c);
});
« no previous file with comments | « tests/lib/async/stream_event_transform_test.dart ('k') | tests/lib/async/stream_state_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698