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

Unified Diff: tests/isolate/message_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/message_test.dart
diff --git a/tests/isolate/message_test.dart b/tests/isolate/message_test.dart
index ead8cfe74d7950829db67306bf267f242ff1f2f6..d6877848627c9ccd8954260981cb74792928de93 100644
--- a/tests/isolate/message_test.dart
+++ b/tests/isolate/message_test.dart
@@ -99,11 +99,11 @@ void main([args, port]) {
test("send objects and receive them back", () {
ReceivePort port = new ReceivePort();
Isolate.spawn(pingPong, port.sendPort);
- port.first.then(expectAsync1((remote) {
+ port.first.then(expectAsync((remote) {
// Send objects and receive them back.
for (int i = 0; i < MessageTest.elms.length; i++) {
var sentObject = MessageTest.elms[i];
- remoteCall(remote, sentObject).then(expectAsync1((var receivedObject) {
+ remoteCall(remote, sentObject).then(expectAsync((var receivedObject) {
MessageTest.VerifyObject(i, receivedObject);
}));
}
@@ -133,7 +133,7 @@ void main([args, port]) {
});
// Shutdown the MessageServer.
- remoteCall(remote, -1).then(expectAsync1((int message) {
+ remoteCall(remote, -1).then(expectAsync((int message) {
expect(message, MessageTest.elms.length + 1);
}));
}));

Powered by Google App Engine
This is Rietveld 408576698