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

Unified Diff: tests/lib/async/catch_errors23_test.dart

Issue 25354003: Redo StreamTransformers so they work with Stack traces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix two more tests. Created 7 years, 2 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
Index: tests/lib/async/catch_errors23_test.dart
diff --git a/tests/lib/async/catch_errors23_test.dart b/tests/lib/async/catch_errors23_test.dart
index cb78b3dbcf08c899640532cd72d181a99495a1c2..46451753ee5f402c533dae135439090d3ced096f 100644
--- a/tests/lib/async/catch_errors23_test.dart
+++ b/tests/lib/async/catch_errors23_test.dart
@@ -25,8 +25,8 @@ main() {
events.add("map $x");
return x + 100;
})
- .transform(new StreamTransformer(
- handleError: (e, sink) => sink.add("error $e")))
+ .transform(new StreamTransformer.fromHandlers(
+ handleError: (e, st, sink) => sink.add("error $e")))
.asBroadcastStream();
stream.listen((x) { events.add("stream $x"); });
}).listen((x) { events.add(x); })

Powered by Google App Engine
This is Rietveld 408576698