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

Unified Diff: tests/isolate/stream_mangling_test.dart

Issue 11740027: Rename unsubscribe to cancel. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: Fix error message. 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
Index: tests/isolate/stream_mangling_test.dart
diff --git a/tests/isolate/stream_mangling_test.dart b/tests/isolate/stream_mangling_test.dart
index 25849a8ae066ba5b1f6413a29d8193f9889ed132..fbc56f6d5399e541d82626680430a2e554d7c4e0 100644
--- a/tests/isolate/stream_mangling_test.dart
+++ b/tests/isolate/stream_mangling_test.dart
@@ -13,7 +13,7 @@ main() {
var nested = [];
nested.add(nested);
Expect.identical(nested, nested[0]);
- stream.subscribe(onData: expectAsync1((data) {
+ stream.listen(expectAsync1((data) {
Expect.isFalse(identical(nested, data));
Expect.isTrue(data is List);
Expect.equals(1, data.length);
@@ -32,7 +32,7 @@ main() {
nested.add(3);
nested.add(4);
Expect.identical(nested, nested[2]);
- stream.subscribe(onData: expectAsync1((data) {
+ stream.listen(expectAsync1((data) {
Expect.isFalse(identical(nested, data));
Expect.isTrue(data is List);
Expect.equals(5, data.length);
@@ -56,7 +56,7 @@ main() {
nested.add(3);
nested.add(4);
Expect.identical(nested, nested[0][0][0][0][2]);
- stream.subscribe(onData: expectAsync1((data) {
+ stream.listen(expectAsync1((data) {
Expect.isFalse(identical(nested, data));
Expect.isTrue(data is List);
Expect.equals(4, data.length);
@@ -80,7 +80,7 @@ main() {
var nested = {};
nested["foo"] = nested;
Expect.identical(nested, nested["foo"]);
- stream.subscribe(onData: expectAsync1((data) {
+ stream.listen(expectAsync1((data) {
Expect.isFalse(identical(nested, data));
Expect.isTrue(data is Map);
Expect.equals(1, data.length);

Powered by Google App Engine
This is Rietveld 408576698