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

Unified Diff: tests/compiler/dart2js_extra/bailout_test.dart

Issue 12441003: Rename String.concat to operator+. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « sdk/lib/io/string_transformer.dart ('k') | tests/compiler/dart2js_extra/to_string_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/bailout_test.dart
diff --git a/tests/compiler/dart2js_extra/bailout_test.dart b/tests/compiler/dart2js_extra/bailout_test.dart
index dd31071fefd7256deca189f58f3d655541bdac85..cbc42ae649995654686c10a9093d559fe3dedcc4 100644
--- a/tests/compiler/dart2js_extra/bailout_test.dart
+++ b/tests/compiler/dart2js_extra/bailout_test.dart
@@ -37,7 +37,7 @@ String forBailout() {
for (int i = 0; i < n; i++) {
var o = myString;
if (false) o[1] = 2;
- res = res.concat(o[i]);
+ res += o[i];
}
return res;
}
@@ -48,7 +48,7 @@ String forInBailout() {
for (int i in myString.codeUnits) {
var o = myString;
if (false) o[1] = 2;
- res = res.concat(new String.fromCharCodes([i]));
+ res += new String.fromCharCodes([i]);
}
return res;
}
@@ -60,7 +60,7 @@ String innerForBailout() {
for (int j = 0; j < n; j++) {
var o = myString;
if (false) o[1] = 2;
- res = res.concat(o[j]);
+ res += o[j];
}
}
return res;
@@ -73,7 +73,7 @@ String whileBailout() {
while (i < n) {
var o = myString;
if (false) o[1] = 2;
- res = res.concat(o[i]);
+ res += o[i];
i++;
}
return res;
@@ -86,7 +86,7 @@ String doWhileBailout() {
do {
var o = myString;
if (false) o[1] = 2;
- res = res.concat(o[i]);
+ res += o[i];
i++;
} while (i < n);
return res;
« no previous file with comments | « sdk/lib/io/string_transformer.dart ('k') | tests/compiler/dart2js_extra/to_string_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698