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

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: Address comments. 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
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/lib/async/catch_errors17_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..89f18a4626cd28f866a3975041c617c0f17f7582 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"); }))
.listen((x) { events.add("stream $x"); },
onDone: () {
Expect.listEquals(["stream 101",
« no previous file with comments | « tests/co19/co19-co19.status ('k') | tests/lib/async/catch_errors17_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698