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

Unified Diff: tests/compiler/dart2js/class_codegen_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/class_codegen_test.dart
diff --git a/tests/compiler/dart2js/class_codegen_test.dart b/tests/compiler/dart2js/class_codegen_test.dart
index b463c5ea9c63091d872d38c8c1d8d9f9d5708d10..09c45eb6de58c71ea993ce2f61c816baf410f10c 100644
--- a/tests/compiler/dart2js/class_codegen_test.dart
+++ b/tests/compiler/dart2js/class_codegen_test.dart
@@ -6,7 +6,7 @@
#import("compiler_helper.dart");
#import("parser_helper.dart");
-const String TEST_ONE = @"""
+const String TEST_ONE = r"""
class A { }
class B { }
@@ -16,7 +16,7 @@ main() {
}
""";
-const String TEST_TWO = @"""
+const String TEST_TWO = r"""
class A { }
class B extends A { }
@@ -26,7 +26,7 @@ main() {
}
""";
-const String TEST_THREE = @"""
+const String TEST_THREE = r"""
class B extends A { }
class A { }
@@ -36,7 +36,7 @@ main() {
}
""";
-const String TEST_FOUR = @"""
+const String TEST_FOUR = r"""
class A {
var x;
}
@@ -51,7 +51,7 @@ main() {
}
""";
-const String TEST_FIVE = @"""
+const String TEST_FIVE = r"""
class A {
var x;
A(x) : this.x = x {}
@@ -81,7 +81,7 @@ subClass() {
fieldTest() {
String generated = compileAll(TEST_FOUR);
print(generated);
- Expect.isTrue(generated.contains(@"""
+ Expect.isTrue(generated.contains(r"""
$.B = {"":
["y", "z", "x"],
"super": "A"
@@ -90,7 +90,7 @@ $.B = {"":
constructor1() {
String generated = compileAll(TEST_FIVE);
- Expect.isTrue(generated.contains(@"new $.A(x);"));
+ Expect.isTrue(generated.contains(r"new $.A(x);"));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698