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

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

Issue 187323003: pkg/unittest: much cleaner support for arbitrary args in expectAsync functions (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: tests for too many args 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
Index: pkg/unittest/test/unittest_test_returning_future_test.dart
diff --git a/pkg/unittest/test/unittest_test_returning_future_test.dart b/pkg/unittest/test/unittest_test_returning_future_test.dart
index a74a8db55479d6522cbfc9feceb136aeea82fc4a..83c4a5d3673d734333a3bb71b7a7c16f1f4b11ed 100644
--- a/pkg/unittest/test/unittest_test_returning_future_test.dart
+++ b/pkg/unittest/test/unittest_test_returning_future_test.dart
@@ -21,8 +21,8 @@ var testFunction = (_) {
// I had a situation where either worked fine on their own, and
// error/fail worked, but fail/error would time out.
test("error1", () {
- var callback = expectAsync0((){});
- var excesscallback = expectAsync0((){});
+ var callback = expectAsync(() {});
+ var excesscallback = expectAsync(() {});
return _defer(() {
excesscallback();
excesscallback();
@@ -36,8 +36,8 @@ var testFunction = (_) {
});
});
test("error2", () {
- var callback = expectAsync0((){});
- var excesscallback = expectAsync0((){});
+ var callback = expectAsync(() {});
+ var excesscallback = expectAsync(() {});
return _defer(() {
excesscallback();
excesscallback();

Powered by Google App Engine
This is Rietveld 408576698