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

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

Issue 10920066: issue 4817 fixed. Implemented raw strings with 'r' instead of '@' for dart2js (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebased, weird problem with patch in string_interpolation_test.dart hopefully fixed Created 8 years, 3 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_extra/string_interpolation_test.dart
diff --git a/tests/compiler/dart2js_extra/string_interpolation_test.dart b/tests/compiler/dart2js_extra/string_interpolation_test.dart
index bf57131722f22ee17d913af636beae75e454a51e..489972150ac5324278656f72f73986ef52cb633f 100644
--- a/tests/compiler/dart2js_extra/string_interpolation_test.dart
+++ b/tests/compiler/dart2js_extra/string_interpolation_test.dart
@@ -16,14 +16,14 @@ void nfun() => null;
void testEscapes() {
// Test that escaping the '$' prevents string interpolation.
String x = "NOT HERE";
- Expect.equals(@'a${x}', 'a\${x}');
- Expect.equals(@'a$x', 'a\$x');
- Expect.equals(@'a${x}', '''a\${x}''');
- Expect.equals(@'a$x', '''a\$x''');
- Expect.equals(@'a${x}', "a\${x}");
- Expect.equals(@'a$x', "a\$x");
- Expect.equals(@'a${x}', """a\${x}""");
- Expect.equals(@'a$x', """a\$x""");
+ Expect.equals(r'a${x}', 'a\${x}');
+ Expect.equals(r'a$x', 'a\$x');
+ Expect.equals(r'a${x}', '''a\${x}''');
+ Expect.equals(r'a$x', '''a\$x''');
+ Expect.equals(r'a${x}', "a\${x}");
+ Expect.equals(r'a$x', "a\$x");
+ Expect.equals(r'a${x}', """a\${x}""");
+ Expect.equals(r'a$x', """a\$x""");
}
@@ -54,7 +54,7 @@ void testMultiLine() {
Expect.equals("\n", """${''}
""");
Expect.equals("\r", """${''}
""");
- Expect.equals("\r\n", """${''}
+ Expect.equals("\r\n", """${''}
""");
Expect.equals("\n", """${'\n'}""");
Expect.equals("\r", """${'\r'}""");

Powered by Google App Engine
This is Rietveld 408576698