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

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

Issue 16408019: Improved error messages from unittest. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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: pkg/unittest/lib/src/description.dart
===================================================================
--- pkg/unittest/lib/src/description.dart (revision 24002)
+++ pkg/unittest/lib/src/description.dart (working copy)
@@ -17,11 +17,13 @@
_out = init;
}
+ int get length => _out.length;
+
/** Get the description as a string. */
String toString() => _out;
- /** Append some plain [text] to the description. */
- Description add(String text) {
+ /** Append [text] to the description. */
+ Description add(text) {
_out = '${_out}${text}';
return this;
}

Powered by Google App Engine
This is Rietveld 408576698