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

Unified Diff: tests/compiler/dart2js/string_escapes_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/string_escapes_test.dart
diff --git a/tests/compiler/dart2js/string_escapes_test.dart b/tests/compiler/dart2js/string_escapes_test.dart
index 200d581026c5f0ff9969c49a4e7b2d6afac24817..a72e9ff1685b96e60d9c8c49a13f1670c064ad7c 100644
--- a/tests/compiler/dart2js/string_escapes_test.dart
+++ b/tests/compiler/dart2js/string_escapes_test.dart
@@ -13,11 +13,11 @@ String compileExpression(String expression) {
main() {
String generated = compileExpression("''' \n\r\u2028\u2029'''");
- Expect.isTrue(generated.contains(@"\n\r\u2028\u2029"));
+ Expect.isTrue(generated.contains(r"\n\r\u2028\u2029"));
- generated = compileExpression("@''' \n\r\u2028\u2029'''");
- Expect.isTrue(generated.contains(@"\n\r\u2028\u2029"));
+ generated = compileExpression("r''' \n\r\u2028\u2029'''");
+ Expect.isTrue(generated.contains(r"\n\r\u2028\u2029"));
generated = compileExpression("'\u2028\u2029'");
- Expect.isTrue(generated.contains(@"\u2028\u2029"));
+ Expect.isTrue(generated.contains(r"\u2028\u2029"));
}
« no previous file with comments | « tests/compiler/dart2js/static_closure_test.dart ('k') | tests/compiler/dart2js/string_interpolation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698