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

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

Issue 14051005: Remove deprecated CollectionSink and Stream.pipeInto. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 | « sdk/lib/async/stream.dart ('k') | tests/lib/async/stream_controller_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_async_test.dart
diff --git a/tests/lib/async/stream_controller_async_test.dart b/tests/lib/async/stream_controller_async_test.dart
index 10a18c49ac72c1a99eadf01cc4d10f0487b84fe6..dca28e1709e88e9fa8c9792211e56315ed928391 100644
--- a/tests/lib/async/stream_controller_async_test.dart
+++ b/tests/lib/async/stream_controller_async_test.dart
@@ -32,22 +32,6 @@ testController() {
.catchError(expectAsync1((e) { Expect.equals("Fnyf!", e.error); }));
c.add(42);
});
-
- test("StreamController.pipeInto", () {
- StreamController c = new StreamController.broadcast();
- var list = <int>[];
- Stream stream = c.stream;
- stream.pipeInto(new CollectionSink<int>(list))
- .whenComplete(expectAsync0(() {
- Expect.listEquals(<int>[1,2,9,3,9], list);
- }));
- c.add(1);
- c.add(2);
- c.add(9);
- c.add(3);
- c.add(9);
- c.close();
- });
}
testSingleController() {
@@ -69,22 +53,6 @@ testSingleController() {
c.add(42);
});
- test("Single-subscription StreamController.pipeInto", () {
- StreamController c = new StreamController();
- var list = <int>[];
- Stream stream = c.stream;
- stream.pipeInto(new CollectionSink<int>(list))
- .whenComplete(expectAsync0(() {
- Expect.listEquals(<int>[1,2,9,3,9], list);
- }));
- c.add(1);
- c.add(2);
- c.add(9);
- c.add(3);
- c.add(9);
- c.close();
- });
-
test("Single-subscription StreamController subscription changes", () {
StreamController c = new StreamController();
EventSink sink = c.sink;
« no previous file with comments | « sdk/lib/async/stream.dart ('k') | tests/lib/async/stream_controller_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698