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)); |