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

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

Issue 11740027: Rename unsubscribe to cancel. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Address comments. Created 7 years, 12 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_pipe.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 3228b26bb2412acaa43a4d019cef98bbef833946..3c65a7e87f981d2b2d7718586d34a46535622828 100644
--- a/tests/lib/async/stream_controller_async_test.dart
+++ b/tests/lib/async/stream_controller_async_test.dart
@@ -83,7 +83,7 @@ testSingleController() {
subscription = stream.listen((data) {
counter += data;
Expect.throws(() => stream.listen(null), (e) => e is StateError);
- subscription.unsubscribe();
+ subscription.cancel();
stream.listen((data) {
counter += data * 10;
},
@@ -125,7 +125,7 @@ testSingleController() {
var subscription = stream.listen(null);
subscription.onData(expectAsync1((data) {
counter += data;
- subscription.unsubscribe();
+ subscription.cancel();
stream.listen((data) {
counter += 10 * data;
},
« no previous file with comments | « sdk/lib/async/stream_pipe.dart ('k') | tests/lib/async/stream_controller_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698