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

Unified Diff: lib/unittest/map_matchers.dart

Issue 10539029: Fixed a mismatch describer with unreachable code. (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
« no previous file with comments | « no previous file | tests/utils/unittest_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/map_matchers.dart
===================================================================
--- lib/unittest/map_matchers.dart (revision 8365)
+++ lib/unittest/map_matchers.dart (working copy)
@@ -43,7 +43,7 @@
return mismatchDescription.addDescriptionOf(item).
add("' doesn't contain key '").addDescriptionOf(_key);
} else {
- return mismatchDescription.add(' contains key ').addDescriptionOf(_key).
+ mismatchDescription.add(' contains key ').addDescriptionOf(_key).
add(' but with value ');
_valueMatcher.describeMismatch(item[_key], mismatchDescription);
return mismatchDescription;
« no previous file with comments | « no previous file | tests/utils/unittest_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698