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

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

Issue 21085010: Added hasProperty matcher. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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/lib/mirror_matchers.dart ('k') | pkg/unittest/test/matchers_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/unittest/lib/src/core_matchers.dart
===================================================================
--- pkg/unittest/lib/src/core_matchers.dart (revision 25630)
+++ pkg/unittest/lib/src/core_matchers.dart (working copy)
@@ -849,13 +849,8 @@
* have a Widget class where each Widget has a price; we could make a
* [CustomMatcher] that can make assertions about prices with:
*
-<<<<<<< .mine
* class HasPrice extends CustomMatcher {
* const HasPrice(matcher) :
-=======
- * class HasPrice extends CustomMatcher {
- * HasPrice(matcher) :
->>>>>>> .r25321
* super("Widget with price that is", "price", matcher);
* featureValueOf(actual) => actual.price;
* }
@@ -898,4 +893,3 @@
return mismatchDescription;
}
}
-
« no previous file with comments | « pkg/unittest/lib/mirror_matchers.dart ('k') | pkg/unittest/test/matchers_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698