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

Unified Diff: tests/compiler/dart2js/loop_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
« no previous file with comments | « tests/compiler/dart2js/literal_list_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/loop_test.dart
diff --git a/tests/compiler/dart2js/loop_test.dart b/tests/compiler/dart2js/loop_test.dart
index 31c4281d2fa3fc812cc606e1486d80f1b4f09d66..5de017685b0f9a305f18bdd7bd6975354df467ed 100644
--- a/tests/compiler/dart2js/loop_test.dart
+++ b/tests/compiler/dart2js/loop_test.dart
@@ -4,7 +4,7 @@
#import("compiler_helper.dart");
-const String TEST_ONE = @"""
+const String TEST_ONE = r"""
foo(a) {
int x = 0;
for (int i = 0; i < 10; i++) {
@@ -14,7 +14,7 @@ foo(a) {
}
""";
-const String TEST_TWO = @"""
+const String TEST_TWO = r"""
foo(a) {
int x = 0;
int i = 0;
@@ -26,7 +26,7 @@ foo(a) {
}
""";
-const String TEST_THREE = @"""
+const String TEST_THREE = r"""
foo(a) {
int x = 0;
for (int i in a) {
@@ -37,7 +37,7 @@ foo(a) {
""";
-const String TEST_FOUR = @"""
+const String TEST_FOUR = r"""
foo(a) {
int x = 0;
for (int i = 0; i < 10; i++) {
@@ -48,7 +48,7 @@ foo(a) {
}
""";
-const String TEST_FIVE = @"""
+const String TEST_FIVE = r"""
foo(a) {
int x = 0;
int i = 0;
@@ -61,7 +61,7 @@ foo(a) {
}
""";
-const String TEST_SIX = @"""
+const String TEST_SIX = r"""
foo(a) {
int x = 0;
for (int i in a) {
@@ -75,15 +75,15 @@ foo(a) {
main() {
String generated = compile(TEST_ONE, 'foo');
- Expect.isTrue(generated.contains(@'for ('));
+ Expect.isTrue(generated.contains(r'for ('));
generated = compile(TEST_TWO, 'foo');
- Expect.isTrue(!generated.contains(@'break'));
+ Expect.isTrue(!generated.contains(r'break'));
generated = compile(TEST_THREE, 'foo');
- Expect.isTrue(!generated.contains(@'break'));
+ Expect.isTrue(!generated.contains(r'break'));
generated = compile(TEST_FOUR, 'foo');
- Expect.isTrue(generated.contains(@'continue'));
+ Expect.isTrue(generated.contains(r'continue'));
generated = compile(TEST_FIVE, 'foo');
- Expect.isTrue(generated.contains(@'continue'));
+ Expect.isTrue(generated.contains(r'continue'));
generated = compile(TEST_SIX, 'foo');
- Expect.isTrue(generated.contains(@'continue'));
+ Expect.isTrue(generated.contains(r'continue'));
}
« no previous file with comments | « tests/compiler/dart2js/literal_list_test.dart ('k') | tests/compiler/dart2js/mock_compiler.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698