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

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

Issue 12212147: Fix break in checked mode. (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 | no next file » | 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 18401)
+++ pkg/unittest/lib/src/core_matchers.dart (working copy)
@@ -180,13 +180,13 @@
if (includeTypes || depth > 1) {
reason.add('expected ');
if (includeTypes) {
- reason..add(expected.runtimeType).add(':');
+ reason.add(expected.runtimeType.toString()).add(':');
}
reason.addDescriptionOf(expected).add(' but ');
}
reason.add('was ');
if (includeTypes) {
- reason..add(actual.runtimeType).add(':');
+ reason..add(actual.runtimeType.toString()).add(':');
Siggi Cherem (dart-lang) 2013/02/12 21:23:52 .. to .? or change the one in 183 to be .. as well
gram 2013/02/12 21:25:41 Done.
}
reason.addDescriptionOf(actual);
}
« 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