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

Unified Diff: tests/isolate/static_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/static_function_test.dart
diff --git a/tests/isolate/static_function_test.dart b/tests/isolate/static_function_test.dart
index 28e06b477ba2be05aeca889a06053cd8181de20f..130c07b2a0012a547b34100fab8e7618a3f2756a 100644
--- a/tests/isolate/static_function_test.dart
+++ b/tests/isolate/static_function_test.dart
@@ -63,7 +63,7 @@ void spawnTest(name, function, response) {
test(name, () {
ReceivePort r = new ReceivePort();
Isolate.spawn(function, r.sendPort);
- r.listen(expectAsync1((v) {
+ r.listen(expectAsync((v) {
expect(v, response);
r.close();
}));
@@ -72,7 +72,7 @@ void spawnTest(name, function, response) {
void functionFailTest(name, function) {
test("throws on $name", () {
- Isolate.spawn(function, null).catchError(expectAsync1((e) {
+ Isolate.spawn(function, null).catchError(expectAsync((e) {
/* do nothing */
}));
});

Powered by Google App Engine
This is Rietveld 408576698