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

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

Issue 12316072: Some fixes in unittest after io v2 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: also include htmlconfig Created 7 years, 10 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/string_matchers.dart
diff --git a/pkg/unittest/lib/src/string_matchers.dart b/pkg/unittest/lib/src/string_matchers.dart
index 7f04a0cd431f2e719cc3c22169f87ebff59d8ed3..933d0a091b8288c5acdb6ccd4c699d56e7991663 100644
--- a/pkg/unittest/lib/src/string_matchers.dart
+++ b/pkg/unittest/lib/src/string_matchers.dart
@@ -74,11 +74,11 @@ String collapseWhitespace(_string) {
var character = _string[i];
if (isWhitespace(character)) {
if (!skipSpace) {
- result.add(' ');
+ result.write(' ');
skipSpace = true;
}
} else {
- result.add(character);
+ result.write(character);
skipSpace = false;
}
}
« pkg/unittest/lib/compact_vm_config.dart ('K') | « pkg/unittest/lib/html_config.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698