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

Unified Diff: pkg/unittest/lib/unittest.dart

Issue 12221003: Fix inconsistent arguments types in expectAsyncN methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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 | « no previous file | tests/isolate/count_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/unittest.dart
===================================================================
--- pkg/unittest/lib/unittest.dart (revision 18082)
+++ pkg/unittest/lib/unittest.dart (working copy)
@@ -468,7 +468,7 @@
* tracked and reported. [callback] should take between 0 and 4 positional
* arguments (named arguments are not supported here).
*/
-Function _expectAsync(Function callback, [int count = 1]) {
+Function _expectAsync(Function callback, {int count: 1}) {
return new _SpreadArgsHelper.fixedCallCount(callback, count).invoke;
}
@@ -481,7 +481,7 @@
* arguments are not supported).
*/
// TODO(sigmund): deprecate this API when issue 2706 is fixed.
-Function expectAsync0(Function callback, [int count = 1]) {
+Function expectAsync0(Function callback, {int count: 1}) {
return new _SpreadArgsHelper.fixedCallCount(callback, count).invoke0;
}
@@ -493,7 +493,7 @@
/** Like [expectAsync0] but [callback] should take 2 positional arguments. */
// TODO(sigmund): deprecate this API when issue 2706 is fixed.
-Function expectAsync2(Function callback, [int count = 1]) {
+Function expectAsync2(Function callback, {int count: 1}) {
return new _SpreadArgsHelper.fixedCallCount(callback, count).invoke2;
}
« no previous file with comments | « no previous file | tests/isolate/count_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698