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

Unified Diff: tests/lib/async/stream_join_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_join_test.dart
diff --git a/tests/lib/async/stream_join_test.dart b/tests/lib/async/stream_join_test.dart
index b7b9f78ab5c25074de613b8c319f6bacf71a85a6..678502cd649694d89ee1f7654fa5e9dee7a5f120 100644
--- a/tests/lib/async/stream_join_test.dart
+++ b/tests/lib/async/stream_join_test.dart
@@ -13,7 +13,7 @@ import "package:expect/expect.dart";
main() {
test("join-empty", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync1(
+ c.stream.join("X").then(expectAsync(
(String s) => expect(s, equals(""))
));
c.close();
@@ -21,7 +21,7 @@ main() {
test("join-single", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync1(
+ c.stream.join("X").then(expectAsync(
(String s) => expect(s, equals("foo"))
));
c.add("foo");
@@ -30,7 +30,7 @@ main() {
test("join-three", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync1(
+ c.stream.join("X").then(expectAsync(
(String s) => expect(s, equals("fooXbarXbaz"))
));
c.add("foo");
@@ -41,7 +41,7 @@ main() {
test("join-three-non-string", () {
StreamController c = new StreamController();
- c.stream.join("X").then(expectAsync1(
+ c.stream.join("X").then(expectAsync(
(String s) => expect(s, equals("fooXbarXbaz"))
));
c.add(new Foo("foo"));
@@ -52,7 +52,7 @@ main() {
test("join-error", () {
StreamController c = new StreamController();
- c.stream.join("X").catchError(expectAsync1(
+ c.stream.join("X").catchError(expectAsync(
(String s) => expect(s, equals("BAD!"))
));
c.add(new Foo("foo"));

Powered by Google App Engine
This is Rietveld 408576698