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

Unified Diff: tests/isolate/illegal_msg_function_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/illegal_msg_function_test.dart
diff --git a/tests/isolate/illegal_msg_function_test.dart b/tests/isolate/illegal_msg_function_test.dart
index 876799413c0a01bcb409f7332b6f625eea1a3ff2..5493abe504be7dddc7877184c3dc67d28b219a04 100644
--- a/tests/isolate/illegal_msg_function_test.dart
+++ b/tests/isolate/illegal_msg_function_test.dart
@@ -27,7 +27,7 @@ void main([args, port]) {
Future spawn = Isolate.spawn(echo, port.sendPort);
var caught_exception = false;
var stream = port.asBroadcastStream();
- stream.first.then(expectAsync1((snd) {
+ stream.first.then(expectAsync((snd) {
try {
snd.send(function);
} catch (e) {
@@ -37,7 +37,7 @@ void main([args, port]) {
if (caught_exception) {
port.close();
} else {
- stream.first.then(expectAsync1((msg) {
+ stream.first.then(expectAsync((msg) {
print("from worker ${msg}");
}));
}

Powered by Google App Engine
This is Rietveld 408576698