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

Unified Diff: pkg/unittest/unittest.dart

Issue 10948004: Fix argument test to use !? instead of ? (sigh). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | no next file » | 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 12482)
+++ pkg/unittest/unittest.dart (working copy)
@@ -360,11 +360,11 @@
return guardAsync(() {
++_actualCalls;
if (!_shouldCallBack()) return;
- if (?arg0) return _callback();
- if (?arg1) return _callback(arg0);
- if (?arg2) return _callback(arg0, arg1);
- if (?arg3) return _callback(arg0, arg1, arg2);
- if (?arg4) return _callback(arg0, arg1, arg2, arg3);
+ if (!?arg0) return _callback();
+ if (!?arg1) return _callback(arg0);
+ if (!?arg2) return _callback(arg0, arg1);
+ if (!?arg3) return _callback(arg0, arg1, arg2);
+ if (!?arg4) return _callback(arg0, arg1, arg2, arg3);
_testCase.error(
'unittest lib does not support callbacks with more than'
' 4 arguments.',
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698