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

Unified Diff: lib/unittest/description.dart

Issue 10702177: Fix the weird names that can occur in exceptions and logs when there is no (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 | « no previous file | lib/unittest/interfaces.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/unittest/description.dart
===================================================================
--- lib/unittest/description.dart (revision 9562)
+++ lib/unittest/description.dart (working copy)
@@ -10,26 +10,26 @@
class StringDescription implements Description {
var _out;
- /**
- * Initialize the description with initial contents [init].
- */
+ /** Initialize the description with initial contents [init]. */
StringDescription([String init = '']) {
_out = init;
}
- /**
- * Get the description as a string.
- */
+ /** Get the description as a string. */
String toString() => _out;
- /**
- * Append some plain [text] to the description.
- */
+ /** Append some plain [text] to the description. */
Description add(String text) {
_out = '${_out}${text}';
return this;
}
+ /** Change the value of the description. */
+ Description replace(String text) {
+ _out = text;
+ return this;
+ }
+
/**
* Appends a description of [value]. If it is an IMatcher use its
* describe method; if it is a string use its literal value after
« no previous file with comments | « no previous file | lib/unittest/interfaces.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698