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

Unified Diff: tests/compiler/dart2js_extra/literal_string_juxtaposition_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/unparser_test.dart ('k') | tests/compiler/dart2js_extra/string_escape_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart
diff --git a/tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart b/tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart
index a3f38b39de51cd90994bc9c3630b462c298d7812..661dda43f185f6a611992513528909b651a4547c 100644
--- a/tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart
+++ b/tests/compiler/dart2js_extra/literal_string_juxtaposition_test.dart
@@ -9,7 +9,7 @@ main() {
var s2 = "abcd" "efgh";
var s3 = "ab" "cd" "ef" "gh";
var s4 = "a" "b" "c" "d" "e" "f" "g" "h";
- var s5 = "a" 'b' @"c" @'d' """e""" '''f''' @"""g""" @'''h''';
+ var s5 = "a" 'b' r"c" r'd' """e""" '''f''' r"""g""" r'''h''';
Expect.isTrue(s1 === s2);
Expect.isTrue(s1 === s3);
Expect.isTrue(s1 === s4);
@@ -21,7 +21,7 @@ main() {
var s2 = "abcd""efgh";
var s3 = "ab""cd""ef""gh";
var s4 = "a""b""c""d""e""f""g""h";
- var s5 = "a"'b'@"c"@'d'"""e"""'''f'''@"""g"""@'''h''';
+ var s5 = "a"'b'r"c"r'd'"""e"""'''f'''r"""g"""r'''h''';
Expect.isTrue(s1 === s2);
Expect.isTrue(s1 === s3);
Expect.isTrue(s1 === s4);
@@ -31,9 +31,9 @@ main() {
// """a""""""""b""" is 'a' '""b'.
Expect.isTrue('a""b' === """a""""""""b""");
// Raw strings.
- Expect.isTrue('ab' === "a"@"b");
- Expect.isTrue('ab' === @"a""b");
- Expect.isTrue('ab' === @"a"@"b");
+ Expect.isTrue('ab' === "a"r"b");
+ Expect.isTrue('ab' === r"a""b");
+ Expect.isTrue('ab' === r"a"r"b");
}
// Newlines are just whitespace.
@@ -99,13 +99,13 @@ main() {
Expect.equals("$x-$y-$z", "${'$x' '-' '$y'}" "-" "$z");
- Expect.equals(@"-foo-42-true-",
- @"-" "$x" @"""-""" """$y""" @'-' '$z' @'''-''', "j");
- Expect.equals(@"-$x-42-true-",
- @"-" @"$x" @"""-""" """$y""" @'-' '$z' @'''-''', "k");
- Expect.equals(@"-foo-$y-true-",
- @"-" "$x" @"""-""" @"""$y""" @'-' '$z' @'''-''', "l");
- Expect.equals(@"-foo-42-$z-",
- @"-" "$x" @"""-""" """$y""" @'-' @'$z' @'''-''', "m");
+ Expect.equals(r"-foo-42-true-",
+ r"-" "$x" r"""-""" """$y""" r'-' '$z' r'''-''', "j");
+ Expect.equals(r"-$x-42-true-",
+ r"-" r"$x" r"""-""" """$y""" r'-' '$z' r'''-''', "k");
+ Expect.equals(r"-foo-$y-true-",
+ r"-" "$x" r"""-""" r"""$y""" r'-' '$z' r'''-''', "l");
+ Expect.equals(r"-foo-42-$z-",
+ r"-" "$x" r"""-""" """$y""" r'-' r'$z' r'''-''', "m");
}
}
« no previous file with comments | « tests/compiler/dart2js/unparser_test.dart ('k') | tests/compiler/dart2js_extra/string_escape_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698