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

Unified Diff: tests/compiler/dart2js/type_guard_unuser_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/tree_shaking_test.dart ('k') | tests/compiler/dart2js/type_inference2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_guard_unuser_test.dart
diff --git a/tests/compiler/dart2js/type_guard_unuser_test.dart b/tests/compiler/dart2js/type_guard_unuser_test.dart
index 64367bd2c68b5959ffd5cdaeea3c326e09a0f2cd..367b62b2b781c6a8c4e6fa62264f5bc105ebbada 100644
--- a/tests/compiler/dart2js/type_guard_unuser_test.dart
+++ b/tests/compiler/dart2js/type_guard_unuser_test.dart
@@ -4,7 +4,7 @@
#import("compiler_helper.dart");
-const String TEST_ONE = @"""
+const String TEST_ONE = r"""
foo(a) {
int c = foo(true);
if (a) c = foo(2);
@@ -13,7 +13,7 @@ foo(a) {
""";
-const String TEST_TWO = @"""
+const String TEST_TWO = r"""
bar(a) {}
foo(d) {
int a = 1;
@@ -23,13 +23,13 @@ foo(d) {
}
""";
-const String TEST_THREE = @"""
+const String TEST_THREE = r"""
foo(int param1, int param2) {
return 0 + param1 + param2;
}
""";
-const String TEST_THREE_WITH_BAILOUT = @"""
+const String TEST_THREE_WITH_BAILOUT = r"""
foo(int param1, int param2) {
var t;
for (int i = 0; i < 1; i++) {
@@ -44,7 +44,7 @@ main() {
RegExp regexp = new RegExp(getIntTypeCheck(anyIdentifier));
Iterator<Match> matches = regexp.allMatches(generated).iterator();
checkNumberOfMatches(matches, 0);
- Expect.isTrue(generated.contains(@'return a === true ? $.foo(2) : c;'));
+ Expect.isTrue(generated.contains(r'return a === true ? $.foo(2) : c;'));
generated = compile(TEST_TWO, 'foo');
regexp = const RegExp("foo\\(1\\)");
« no previous file with comments | « tests/compiler/dart2js/tree_shaking_test.dart ('k') | tests/compiler/dart2js/type_inference2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698