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

Unified Diff: tests/compiler/dart2js/ssa_phi_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. Marked raw_string_test as pass for dart2js-ff and dart2dart 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/ssa_phi_codegen_test.dart
diff --git a/tests/compiler/dart2js/ssa_phi_codegen_test.dart b/tests/compiler/dart2js/ssa_phi_codegen_test.dart
index 2e4924702013b28eb236d33d0fec6cd09154edf0..3f666139cb2f8812bada025de252147b11b2dd98 100644
--- a/tests/compiler/dart2js/ssa_phi_codegen_test.dart
+++ b/tests/compiler/dart2js/ssa_phi_codegen_test.dart
@@ -5,7 +5,7 @@
#import("compiler_helper.dart");
-const String TEST_ONE = @"""
+const String TEST_ONE = r"""
void foo(bar) {
var a = 1;
if (bar) {
@@ -17,7 +17,7 @@ void foo(bar) {
}
""";
-const String TEST_TWO = @"""
+const String TEST_TWO = r"""
void main() {
var t = 0;
for (var i = 0; i == 0; i = i + 1) {
@@ -27,7 +27,7 @@ void main() {
}
""";
-const String TEST_THREE = @"""
+const String TEST_THREE = r"""
foo(b, c, d) {
var val = 42;
if (b) {
@@ -40,7 +40,7 @@ foo(b, c, d) {
}
""";
-const String TEST_FOUR = @"""
+const String TEST_FOUR = r"""
foo() {
var cond1 = true;
var cond2 = false;
@@ -77,7 +77,7 @@ main() {
Expect.isTrue(regexp.hasMatch(generated));
// Check that a store just after the declaration of the local
// only generates one instruction.
- regexp = const RegExp(@"val = 42");
+ regexp = const RegExp(r"val = 42");
Expect.isTrue(regexp.hasMatch(generated));
generated = compile(TEST_FOUR, 'foo');
« no previous file with comments | « tests/compiler/dart2js/rewrite_better_user_test.dart ('k') | tests/compiler/dart2js/static_closure_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698