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

Unified Diff: tests/isolate/nested_spawn2_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/isolate/nested_spawn2_test.dart
diff --git a/tests/isolate/nested_spawn2_test.dart b/tests/isolate/nested_spawn2_test.dart
index ea6331ec98a2bbb4c0e153ff3679c72bdc64d22b..fbeaeef7c4a50273c869ada40ddfaff6abce3300 100644
--- a/tests/isolate/nested_spawn2_test.dart
+++ b/tests/isolate/nested_spawn2_test.dart
@@ -57,14 +57,14 @@ void main([args, port]) {
test("spawned isolate can spawn other isolates", () {
ReceivePort init = new ReceivePort();
Isolate.spawn(isolateA, init.sendPort);
- init.first.then(expectAsync1((port) {
- _call(port, "launch nested!", expectAsync2((msg, replyTo) {
+ init.first.then(expectAsync((port) {
+ _call(port, "launch nested!", expectAsync((msg, replyTo) {
expect(msg[0], "0");
- _call(replyTo, msg1, expectAsync2((msg, replyTo) {
+ _call(replyTo, msg1, expectAsync((msg, replyTo) {
expect(msg[0], "2");
- _call(replyTo, msg3, expectAsync2((msg, replyTo) {
+ _call(replyTo, msg3, expectAsync((msg, replyTo) {
expect(msg[0], "4");
- _call(replyTo, msg5, expectAsync2((msg, _) {
+ _call(replyTo, msg5, expectAsync((msg, _) {
expect(msg[0], "6");
}));
}));

Powered by Google App Engine
This is Rietveld 408576698