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

Unified Diff: tests/lib/async/stream_controller_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/lib/async/first_regression_test.dart ('k') | tests/lib/async/stream_event_transform_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/stream_controller_test.dart
diff --git a/tests/lib/async/stream_controller_test.dart b/tests/lib/async/stream_controller_test.dart
index 8f1d26aa0da74db3b6a638ce0992892a4daee67a..be9e975e7f5c018c3698b17792227982f70af2ac 100644
--- a/tests/lib/async/stream_controller_test.dart
+++ b/tests/lib/async/stream_controller_test.dart
@@ -102,9 +102,9 @@ void testMultiController() {
expectedEvents =
new Events()..error("a")..add(42)..error("b")..add("foo")..close();
actualEvents = new Events.capture(c.stream.asBroadcastStream().transform(
- new StreamTransformer(
+ new StreamTransformer.fromHandlers(
handleData: (v, s) { s.addError(v); },
- handleError: (e, s) { s.add(e); },
+ handleError: (e, st, s) { s.add(e); },
handleDone: (s) {
s.add("foo");
s.close();
@@ -279,9 +279,9 @@ testSingleController() {
expectedEvents =
new Events()..error("a")..add(42)..error("b")..add("foo")..close();
actualEvents = new Events.capture(c.stream.transform(
- new StreamTransformer(
+ new StreamTransformer.fromHandlers(
handleData: (v, s) { s.addError(v); },
- handleError: (e, s) { s.add(e); },
+ handleError: (e, st, s) { s.add(e); },
handleDone: (s) {
s.add("foo");
s.close();
« no previous file with comments | « tests/lib/async/first_regression_test.dart ('k') | tests/lib/async/stream_event_transform_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698