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

Unified Diff: tests/compiler/dart2js/unparser_test.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: tests/compiler/dart2js/unparser_test.dart
diff --git a/tests/compiler/dart2js/unparser_test.dart b/tests/compiler/dart2js/unparser_test.dart
index ee7b7109e9576e38ba8228230d782817943b76f8..a6bb634c200ff2c215d6902e2688bcca48ea3623 100644
--- a/tests/compiler/dart2js/unparser_test.dart
+++ b/tests/compiler/dart2js/unparser_test.dart
@@ -306,16 +306,16 @@ testMixinApplications() {
testUnparseParameters(List<String> variableDeclarations) {
var sb = new StringBuffer();
- sb.add('Constructor(');
+ sb.write('Constructor(');
int index = 0;
for (String variableDeclaration in variableDeclarations) {
if (index != 0) {
- sb.add(', ');
+ sb.write(', ');
}
- sb.add(variableDeclaration);
+ sb.write(variableDeclaration);
index++;
}
- sb.add(');');
+ sb.write(');');
FunctionExpression node = parseMember(sb.toString());
index = 0;

Powered by Google App Engine
This is Rietveld 408576698