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

Unified Diff: tests/lib/async/stream_transform_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
Index: tests/lib/async/stream_transform_test.dart
diff --git a/tests/lib/async/stream_transform_test.dart b/tests/lib/async/stream_transform_test.dart
index fc6a3cf77ded110822715519ae642efb9f6a33c0..40c480c23bc27ef18e287389be2c2f48e6d96a3d 100644
--- a/tests/lib/async/stream_transform_test.dart
+++ b/tests/lib/async/stream_transform_test.dart
@@ -49,10 +49,11 @@ main() {
test("closing after done", () {
var controller = new StreamController(sync: true);
- controller.stream.map((e) => e).transform(new StreamTransformer(
- handleData: (element, sink) { sink.add(element); },
- handleDone: (sink) { sink.close(); })
- ).listen(expectAsync1((e) => expect(e, equals("foo"))));
+ controller.stream.map((e) => e)
+ .transform(new StreamTransformer.fromHandlers(
+ handleData: (element, sink) { sink.add(element); },
+ handleDone: (sink) { sink.close(); }))
+ .listen(expectAsync1((e) => expect(e, equals("foo"))));
controller.add("foo");
// Should not crash.
« no previous file with comments | « tests/lib/async/stream_event_transformed_test.dart ('k') | tests/lib/async/stream_transformer_from_handlers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698