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

Unified Diff: tests/isolate/browser/typed_data_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/browser/typed_data_message_test.dart
diff --git a/tests/isolate/browser/typed_data_message_test.dart b/tests/isolate/browser/typed_data_message_test.dart
index 61954b952f2ef55272e0420732305a1b6277f995..d23c7ffd69dab8b82bea682f005a8bffd2a04b65 100644
--- a/tests/isolate/browser/typed_data_message_test.dart
+++ b/tests/isolate/browser/typed_data_message_test.dart
@@ -98,13 +98,13 @@ void main([args, port]) {
for (int i = 0; i < elements.length; i++) {
var sentObject = elements[i];
var idx = i;
- sendReceive(remote, sentObject).then(expectAsync1((var receivedObject) {
+ sendReceive(remote, sentObject).then(expectAsync((var receivedObject) {
VerifyObject(idx, receivedObject);
}));
}
// Shutdown the MessageServer.
- sendReceive(remote, -1).then(expectAsync1((int message) {
+ sendReceive(remote, -1).then(expectAsync((int message) {
expect(message, elements.length);
}));
});

Powered by Google App Engine
This is Rietveld 408576698