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

Unified Diff: pkg/unittest/test/test_utils.dart

Issue 137223007: pkg/unittest: deprecate expectAsyncN and expectAsyncUntilN (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: comments Created 6 years, 10 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
« no previous file with comments | « pkg/unittest/lib/unittest.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/test/test_utils.dart
diff --git a/pkg/unittest/test/test_utils.dart b/pkg/unittest/test/test_utils.dart
index 01a483be73349176b1a1844346b26b4e5016e418..de783bedcf09abf5b13449ad96ef732a592f9b73 100644
--- a/pkg/unittest/test/test_utils.dart
+++ b/pkg/unittest/test/test_utils.dart
@@ -41,7 +41,7 @@ void shouldFail(value, Matcher matcher, expected, {bool isAsync: false}) {
}
if (isAsync) {
- Timer.run(expectAsync0(afterTest));
+ Timer.run(expectAsync(afterTest));
} else {
afterTest();
}
@@ -57,7 +57,7 @@ void shouldPass(value, Matcher matcher, {bool isAsync: false}) {
expect(errorCount, equals(0));
}
if (isAsync) {
- Timer.run(expectAsync0(afterTest));
+ Timer.run(expectAsync(afterTest));
} else {
afterTest();
}
« no previous file with comments | « pkg/unittest/lib/unittest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698