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

Unified Diff: tests/lib/async/timer_cancel_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_cancel_test.dart
diff --git a/tests/lib/async/timer_cancel_test.dart b/tests/lib/async/timer_cancel_test.dart
index 25c459b0e87e5d29816b2d4796912fc62f57100e..57e10069b2f898949c6ec07a5a3cb1d7e726cb30 100644
--- a/tests/lib/async/timer_cancel_test.dart
+++ b/tests/lib/async/timer_cancel_test.dart
@@ -28,17 +28,17 @@ main() {
expect(repeatTimer, 1);
}
- cancelTimer = new Timer(ms * 1000, expectAsync0(unreachable, count: 0));
+ cancelTimer = new Timer(ms * 1000, expectAsync(unreachable, count: 0));
cancelTimer.cancel();
- new Timer(ms * 1000, expectAsync0(handler));
- cancelTimer = new Timer(ms * 2000, expectAsync0(unreachable, count: 0));
+ new Timer(ms * 1000, expectAsync(handler));
+ cancelTimer = new Timer(ms * 2000, expectAsync(unreachable, count: 0));
repeatTimer = 0;
- new Timer.periodic(ms * 1500, expectAsync1(repeatHandler));
+ new Timer.periodic(ms * 1500, expectAsync(repeatHandler));
});
test("cancel timer with same time", () {
var t2;
- var t1 = new Timer(ms * 0, expectAsync0(() => t2.cancel()));
- t2 = new Timer(ms * 0, expectAsync0(t1.cancel, count: 0));
+ var t1 = new Timer(ms * 0, expectAsync(() => t2.cancel()));
+ t2 = new Timer(ms * 0, expectAsync(t1.cancel, count: 0));
});
}

Powered by Google App Engine
This is Rietveld 408576698