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

Unified Diff: tests/compiler/dart2js/class_codegen2_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_codegen2_test.dart
diff --git a/tests/compiler/dart2js/class_codegen2_test.dart b/tests/compiler/dart2js/class_codegen2_test.dart
index 984bf7abb766a61bec3bd23c1825b233a2944634..90a18208ae373b46a226188b1b19d9a6e674b4d8 100644
--- a/tests/compiler/dart2js/class_codegen2_test.dart
+++ b/tests/compiler/dart2js/class_codegen2_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 { foo() => 499; }
class B { bar() => 42; }
@@ -16,7 +16,7 @@ main() {
}
""";
-const String TEST_TWO = @"""
+const String TEST_TWO = r"""
class A {
foo() => 499;
bar() => 42;
@@ -28,7 +28,7 @@ main() {
}
""";
-const String TEST_THREE = @"""
+const String TEST_THREE = r"""
class A {
foo() => 499;
bar() => 42;
@@ -72,7 +72,7 @@ main() {
}
""";
-const String TEST_FOUR = @"""
+const String TEST_FOUR = r"""
class A { foo() => 499; }
foo(f) { f(); }
@@ -85,7 +85,7 @@ main() {
main() {
// At some point Dart2js generated bad object literals with dangling commas:
// { a: true, }. Make sure this doesn't happen again.
- RegExp danglingComma = const RegExp(@',[ \n]*}');
+ RegExp danglingComma = const RegExp(r',[ \n]*}');
String generated = compileAll(TEST_ONE);
Expect.isFalse(danglingComma.hasMatch(generated));

Powered by Google App Engine
This is Rietveld 408576698