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

Unified Diff: sdk/lib/core/expect.dart

Issue 12473003: Remove deprecated StringBuffer.add, addAll and addCharCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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: sdk/lib/core/expect.dart
diff --git a/sdk/lib/core/expect.dart b/sdk/lib/core/expect.dart
index bf9053a0a504c9b1f4aa4825bda5a2500ef98a48..0302d3deef99c3d3309afb89374e0e9afc01ef27 100644
--- a/sdk/lib/core/expect.dart
+++ b/sdk/lib/core/expect.dart
@@ -252,20 +252,20 @@ class Expect {
StringBuffer sb = new StringBuffer("Expect.setEquals($msg) fails");
// Report any missing items.
if (!missingSet.isEmpty) {
- sb.add('\nExpected collection does not contain: ');
+ sb.write('\nExpected collection does not contain: ');
}
for (final val in missingSet) {
- sb.add('$val ');
+ sb.write('$val ');
}
// Report any extra items.
if (!extraSet.isEmpty) {
- sb.add('\nExpected collection should not contain: ');
+ sb.write('\nExpected collection should not contain: ');
}
for (final val in extraSet) {
- sb.add('$val ');
+ sb.write('$val ');
}
_fail(sb.toString());
}

Powered by Google App Engine
This is Rietveld 408576698