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

Unified Diff: tests/lib/async/timer_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/lib/async/timer_test.dart
diff --git a/tests/lib/async/timer_test.dart b/tests/lib/async/timer_test.dart
index 057d3a7ee117ab621f7ed329126a480c61c18113..c25ce141be1f133c2129896fd15b9a9220608e35 100644
--- a/tests/lib/async/timer_test.dart
+++ b/tests/lib/async/timer_test.dart
@@ -28,7 +28,7 @@ void timeoutHandler() {
timeout = timeout - DECREASE;
Duration duration = new Duration(milliseconds: timeout);
startTime = (new DateTime.now()).millisecondsSinceEpoch;
- new Timer(duration, expectAsync0(timeoutHandler));
+ new Timer(duration, expectAsync(timeoutHandler));
}
}
@@ -38,6 +38,6 @@ main() {
timeout = STARTTIMEOUT;
Duration duration = new Duration(milliseconds: timeout);
startTime = (new DateTime.now()).millisecondsSinceEpoch;
- new Timer(duration, expectAsync0(timeoutHandler));
+ new Timer(duration, expectAsync(timeoutHandler));
});
}

Powered by Google App Engine
This is Rietveld 408576698