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

Unified Diff: tests/lib/async/schedule_microtask2_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/schedule_microtask2_test.dart
diff --git a/tests/lib/async/schedule_microtask2_test.dart b/tests/lib/async/schedule_microtask2_test.dart
index fa55f5cd86187d0928f1367a1c54fad3e54db433..19c3a9bcb2a6825e445b874f14a62a066913b8af 100644
--- a/tests/lib/async/schedule_microtask2_test.dart
+++ b/tests/lib/async/schedule_microtask2_test.dart
@@ -13,7 +13,7 @@ main() {
test("run async in order test", () {
int lastCallback = -1;
for (int i = 0; i < 100; i++) {
- scheduleMicrotask(expectAsync0(() {
+ scheduleMicrotask(expectAsync(() {
Expect.equals(lastCallback, i - 1);
lastCallback = i;
}));

Powered by Google App Engine
This is Rietveld 408576698