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

Unified Diff: tests/isolate/message2_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/message2_test.dart
diff --git a/tests/isolate/message2_test.dart b/tests/isolate/message2_test.dart
index eaa5c95670f864d57c620545485509426ef68227..3b84e59f615804f28af1c179b390fd6e2b87b0cd 100644
--- a/tests/isolate/message2_test.dart
+++ b/tests/isolate/message2_test.dart
@@ -61,7 +61,7 @@ void main([args, port]) {
test("map is equal after it is sent back and forth", () {
ReceivePort port = new ReceivePort();
Isolate.spawn(pingPong, port.sendPort);
- port.first.then(expectAsync1((remote) {
+ port.first.then(expectAsync((remote) {
Map m = new Map();
m[1] = "eins";
m[2] = "deux";
@@ -69,7 +69,7 @@ void main([args, port]) {
m[4] = "four";
ReceivePort replyPort = new ReceivePort();
remote.send([m, replyPort.sendPort]);
- replyPort.first.then(expectAsync1((var received) {
+ replyPort.first.then(expectAsync((var received) {
MessageTest.mapEqualsDeep(m, received);
remote.send(null);
}));

Powered by Google App Engine
This is Rietveld 408576698