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

Unified Diff: tests/lib/async/timer_isActive_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_isActive_test.dart
diff --git a/tests/lib/async/timer_isActive_test.dart b/tests/lib/async/timer_isActive_test.dart
index e9ecda14976fcd42cdf4675448e63903a80e78c0..27fc5d05262e29b36b40bb8817e5f3163d8344ad 100644
--- a/tests/lib/async/timer_isActive_test.dart
+++ b/tests/lib/async/timer_isActive_test.dart
@@ -11,7 +11,7 @@ main() {
Timer t;
t = new Timer(const Duration(seconds: 1),
- expectAsync0(() => expect(t.isActive, equals(false))));
+ expectAsync(() => expect(t.isActive, equals(false))));
expect(t.isActive, equals(true));
});
@@ -29,14 +29,14 @@ main() {
}
t = new Timer.periodic(new Duration(milliseconds: 1),
- expectAsync1(checkActive, count: 3));
+ expectAsync(checkActive, count: 3));
expect(t.isActive, equals(true));
});
test("timer cancel test", () {
Timer timer = new Timer(const Duration(seconds: 1),
() => fail("Should not be reached."));
- Timer.run(expectAsync0(() {
+ Timer.run(expectAsync(() {
expect(timer.isActive, equals(true));
timer.cancel();
expect(timer.isActive, equals(false));

Powered by Google App Engine
This is Rietveld 408576698