| 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));
|
|
|
|
|