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

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

Issue 218273002: Upgrading tests with unittest deprecations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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_subscription_as_future_test.dart
diff --git a/tests/lib/async/stream_subscription_as_future_test.dart b/tests/lib/async/stream_subscription_as_future_test.dart
index 3c2c082ddeffe0045ab3788ef292e7a84fad847f..b33f74d33adba00b95373a941b406530810c65be 100644
--- a/tests/lib/async/stream_subscription_as_future_test.dart
+++ b/tests/lib/async/stream_subscription_as_future_test.dart
@@ -14,7 +14,7 @@ main() {
Stream stream = new Stream.fromIterable([1, 2, 3]);
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).then(expectAsync1((o) {
+ subscription.asFuture(output).then(expectAsync((o) {
Expect.listEquals([1, 2, 3], o);
}));
});
@@ -26,7 +26,7 @@ main() {
Stream stream = controller.stream;
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).then(expectAsync1((o) {
+ subscription.asFuture(output).then(expectAsync((o) {
Expect.listEquals([1, 2, 3], o);
}));
});
@@ -35,7 +35,7 @@ main() {
Stream stream = new Stream.fromIterable([1, 2, 3]).map((x) => x);
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).then(expectAsync1((o) {
+ subscription.asFuture(output).then(expectAsync((o) {
Expect.listEquals([1, 2, 3], o);
}));
});
@@ -48,7 +48,7 @@ main() {
Stream stream = controller.stream;
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).catchError(expectAsync1((error) {
+ subscription.asFuture(output).catchError(expectAsync((error) {
Expect.equals(error, "foo");
}));
});
@@ -61,7 +61,7 @@ main() {
});
var output = [];
var subscription = stream.listen((x) { output.add(x); });
- subscription.asFuture(output).catchError(expectAsync1((error) {
+ subscription.asFuture(output).catchError(expectAsync((error) {
Expect.equals(error, "foo");
}));
});

Powered by Google App Engine
This is Rietveld 408576698