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

Unified Diff: tests/compiler/dart2js/minify_many_locals_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/minify_many_locals_test.dart
diff --git a/tests/compiler/dart2js/minify_many_locals_test.dart b/tests/compiler/dart2js/minify_many_locals_test.dart
index 98260b9171c04c43eb47d2f4c4d92b59186c5d3b..dadd15c49895a1a3e2ee02caea5173dcf6669c19 100644
--- a/tests/compiler/dart2js/minify_many_locals_test.dart
+++ b/tests/compiler/dart2js/minify_many_locals_test.dart
@@ -7,15 +7,15 @@ import 'compiler_helper.dart';
main() {
var buffer = new StringBuffer();
- buffer.add("var foo(");
+ buffer.write("var foo(");
for (int i = 0; i < 2000; i++) {
- buffer.add("x$i, ");
+ buffer.write("x$i, ");
}
- buffer.add("x) { int i = ");
+ buffer.write("x) { int i = ");
for (int i = 0; i < 2000; i++) {
- buffer.add("x$i+");
+ buffer.write("x$i+");
}
- buffer.add("2000; return i; }");
+ buffer.write("2000; return i; }");
var generated = compile(buffer.toString(), entry: 'foo', minify: true);
RegExp re = new RegExp(r"\(a,b,c");
Expect.isTrue(re.hasMatch(generated));

Powered by Google App Engine
This is Rietveld 408576698