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

Unified Diff: tests/language/src/SuperOperatorTest.dart

Issue 9969159: - Remove more String operator + from tests. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/language/src/SuperOperatorTest.dart
===================================================================
--- tests/language/src/SuperOperatorTest.dart (revision 6417)
+++ tests/language/src/SuperOperatorTest.dart (working copy)
@@ -11,7 +11,7 @@
A() : things = ['D', 'a', 'r', 't', 42];
operator + (String s) {
- val = val + s;
+ val = "${val}${s}";
hausner 2012/04/11 18:01:24 or val.concat(s);
return this;
}
@@ -27,12 +27,15 @@
class B extends A {
operator + (String s) {
- super + (s + s); // Call A.operator+(this, s + s).
+ super + ("${s}${s}"); // Call A.operator+(this, s + s).
hausner 2012/04/11 18:01:24 + in comment is meaningless.
Ivan Posva 2012/04/13 13:29:17 Done.
return this;
}
operator [] (i) {
var temp = super[i];
+ if (temp is String) {
+ return "$temp$temp";
hausner 2012/04/11 18:01:24 or return temp.concat(temp);
+ }
return temp + temp;
}
« tests/language/src/StringConcatTest.dart ('K') | « tests/language/src/StringConcatTest.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698