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

Unified Diff: tests/lib/async/catch_errors16_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: Small fixes and 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_errors16_test.dart
diff --git a/tests/lib/async/catch_errors16_test.dart b/tests/lib/async/catch_errors16_test.dart
index e2af7686f34c1ce24a2a5091fb7970fe486286b8..0b939c4c9c0d47cfb4ca8bb294351a4e20460e44 100644
--- a/tests/lib/async/catch_errors16_test.dart
+++ b/tests/lib/async/catch_errors16_test.dart
@@ -19,8 +19,8 @@ main() {
stream = stream.map((x) => x + 100);
}).listen((x) { events.add(x); });
stream
- .transform(new StreamTransformer(
- handleError: (e, sink) => sink.add("error $e")))
+ .transform(new StreamTransformer.fromHandlers(
+ handleError: (e, st, sink) => sink.add("error $e")))
Lasse Reichstein Nielsen 2013/10/07 11:47:00 I prefer braces to '=>' for void functions.
floitsch 2013/10/10 15:39:57 Done.
.listen((x) { events.add("stream $x"); },
onDone: () {
Expect.listEquals(["stream 101",

Powered by Google App Engine
This is Rietveld 408576698