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

Unified Diff: pkg/unittest/unittest.dart

Issue 11090016: Change core lib, dart2js, and more for new optional parameters syntax (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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/test/mock_test.dart ('k') | runtime/bin/directory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/unittest.dart
===================================================================
--- pkg/unittest/unittest.dart (revision 13683)
+++ pkg/unittest/unittest.dart (working copy)
@@ -481,7 +481,7 @@
/** Like [expectAsync0] but [callback] should take 1 positional argument. */
// TODO(sigmund): deprecate this API when issue 2706 is fixed.
-Function expectAsync1(Function callback, [int count = 1]) {
+Function expectAsync1(Function callback, {int count: 1}) {
return new _SpreadArgsHelper.fixedCallCount(callback, count).invoke1;
}
@@ -797,7 +797,7 @@
if (!testCase.isComplete && testCase.callbackFunctionsOutstanding == 0) {
testCase.pass();
}
- }, testNum:_currentTest);
+ }, null, _currentTest);
if (!testCase.isComplete &&
testCase.callbackFunctionsOutstanding > 0) return;
« no previous file with comments | « pkg/unittest/test/mock_test.dart ('k') | runtime/bin/directory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698