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

Unified Diff: lib/unittest/operator_matchers.dart

Issue 10692051: Some more changes that came out of writing an article on mocks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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: lib/unittest/operator_matchers.dart
===================================================================
--- lib/unittest/operator_matchers.dart (revision 9180)
+++ lib/unittest/operator_matchers.dart (working copy)
@@ -46,25 +46,25 @@
} else {
List matchers = new List();
if (arg0 != null) {
- matchers.add(arg0);
+ matchers.add(wrapMatcher(arg0));
}
if (arg1 != null) {
- matchers.add(arg1);
+ matchers.add(wrapMatcher(arg1));
}
if (arg2 != null) {
- matchers.add(arg2);
+ matchers.add(wrapMatcher(arg2));
}
if (arg3 != null) {
- matchers.add(arg3);
+ matchers.add(wrapMatcher(arg3));
}
if (arg4 != null) {
- matchers.add(arg4);
+ matchers.add(wrapMatcher(arg4));
}
if (arg5 != null) {
- matchers.add(arg5);
+ matchers.add(wrapMatcher(arg5));
}
if (arg6 != null) {
- matchers.add(arg6);
+ matchers.add(wrapMatcher(arg6));
}
return new _AllOf(matchers);
}
@@ -132,25 +132,25 @@
} else {
List matchers = new List();
if (arg0 != null) {
- matchers.add(arg0);
+ matchers.add(wrapMatcher(arg0));
}
if (arg1 != null) {
- matchers.add(arg1);
+ matchers.add(wrapMatcher(arg1));
}
if (arg2 != null) {
- matchers.add(arg2);
+ matchers.add(wrapMatcher(arg2));
}
if (arg3 != null) {
- matchers.add(arg3);
+ matchers.add(wrapMatcher(arg3));
}
if (arg4 != null) {
- matchers.add(arg4);
+ matchers.add(wrapMatcher(arg4));
}
if (arg5 != null) {
- matchers.add(arg5);
+ matchers.add(wrapMatcher(arg5));
}
if (arg6 != null) {
- matchers.add(arg6);
+ matchers.add(wrapMatcher(arg6));
}
return new _AnyOf(matchers);
}

Powered by Google App Engine
This is Rietveld 408576698