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

Unified Diff: lib/unittest/expect.dart

Issue 10694146: Added ability to disable logging in mocks, to avoid the memory overhead if you don't need behavior … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « lib/unittest/core_matchers.dart ('k') | lib/unittest/mock.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/expect.dart
===================================================================
--- lib/unittest/expect.dart (revision 9562)
+++ lib/unittest/expect.dart (working copy)
@@ -112,8 +112,9 @@
description.add('Expected: ').addDescriptionOf(matcher).
add('\n but: ');
matcher.describeMismatch(actual, description);
+ description.add('.\n');
if (reason != null) {
- description.add('\n').add(reason).add('\n');
+ description.add(reason).add('\n');
}
return description.toString();
}
« no previous file with comments | « lib/unittest/core_matchers.dart ('k') | lib/unittest/mock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698