Index: lib/unittest/description.dart |
=================================================================== |
--- lib/unittest/description.dart (revision 8913) |
+++ lib/unittest/description.dart (working copy) |
@@ -8,9 +8,16 @@ |
*/ |
class StringDescription implements Description { |
- var _out = ''; |
+ var _out; |
/** |
+ * Initialize the description with initial contents [init]. |
+ */ |
+ StringDescription([String init = '']) { |
+ _out = init; |
+ } |
+ |
+ /** |
* Get the description as a string. |
*/ |
String toString() => _out; |