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

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

Issue 8585044: Fixes issues in string interpolation tests (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: remove debugging code Created 9 years, 1 month 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
« frog/value.dart ('K') | « tests/language/language.status ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/src/StringInterpolateTest.dart
diff --git a/tests/language/src/StringInterpolateTest.dart b/tests/language/src/StringInterpolateTest.dart
index da1fab3f789177333b9c7c9dda821dead4816c2d..4effbd950d762fde78c2c2aab54fea2d41634b9b 100644
--- a/tests/language/src/StringInterpolateTest.dart
+++ b/tests/language/src/StringInterpolateTest.dart
@@ -7,14 +7,16 @@
class WhatchamaCallIt {
WhatchamaCallIt() { }
- void foo() {
- return "Hansel and $name"; // Field name is defined in subclass.
+ String foo() {
+ // Test $this and Field name is defined in subclass.
+ return "$this and $name";
}
}
class ThingamaBob extends WhatchamaCallIt {
ThingamaBob(String s) : super(), name = s { }
String name;
+ toString() => "Hansel";
}
class StringInterpolateTest {
@@ -28,7 +30,7 @@ class StringInterpolateTest {
static testMain() {
Printers = "Printers: $A and $B";
AAR_Printers = "AAR has $N $Printers.";
-
+
var x = 1;
var s = "eins und \$x macht zwei.";
print(s);
« frog/value.dart ('K') | « tests/language/language.status ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698