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

Unified Diff: tests/compiler/dart2js_extra/string_escape_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_extra/string_escape_test.dart
diff --git a/tests/compiler/dart2js_extra/string_escape_test.dart b/tests/compiler/dart2js_extra/string_escape_test.dart
index b26b252dbbc600b4847023746e1d896d6ed52de0..27e32184365729e9f5322fbe5eee19252245dc05 100644
--- a/tests/compiler/dart2js_extra/string_escape_test.dart
+++ b/tests/compiler/dart2js_extra/string_escape_test.dart
@@ -20,12 +20,12 @@ testSingleCharacterEscapes() {
}
// An escaped quote isn't part of a multiline end quote.
- Expect.equals(@'"', """\"""");
- Expect.equals(@"'", '''\'''');
- Expect.equals(@'" "', """" \"""");
- Expect.equals(@"' '", '''' \'''');
- Expect.equals(@'"" ', """"" """);
- Expect.equals(@"'' ", ''''' ''');
+ Expect.equals(r'"', """\"""");
+ Expect.equals(r"'", '''\'''');
+ Expect.equals(r'" "', """" \"""");
+ Expect.equals(r"' '", '''' \'''');
+ Expect.equals(r'"" ', """"" """);
+ Expect.equals(r"'' ", ''''' ''');
}
testXEscapes() {
@@ -108,13 +108,13 @@ testQuotes() {
Expect.equals(bothQuotes, ' "\' ');
Expect.equals(bothQuotes, """ "' """);
Expect.equals(bothQuotes, ''' "' ''');
- Expect.equals(bothQuotes, @""" "' """);
- Expect.equals(bothQuotes, @''' "' ''');
+ Expect.equals(bothQuotes, r""" "' """);
+ Expect.equals(bothQuotes, r''' "' ''');
}
testRawStrings() {
- String raw1 = @'\x00';
+ String raw1 = r'\x00';
Expect.equals(4, raw1.length);
Expect.equals(0x5c, raw1.charCodeAt(0));
}

Powered by Google App Engine
This is Rietveld 408576698