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

Unified Diff: tests/compiler/dart2js/closure_codegen_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/class_order_test.dart ('k') | tests/compiler/dart2js/code_motion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/closure_codegen_test.dart
diff --git a/tests/compiler/dart2js/closure_codegen_test.dart b/tests/compiler/dart2js/closure_codegen_test.dart
index 32a1c9c0494eaf18595b01b8a6bd925956a729a0..fc07210135246ae2a009fc04cf07fdf2e80345fd 100644
--- a/tests/compiler/dart2js/closure_codegen_test.dart
+++ b/tests/compiler/dart2js/closure_codegen_test.dart
@@ -6,28 +6,28 @@
#import("compiler_helper.dart");
#import("parser_helper.dart");
-const String TEST_INVOCATION0 = @"""
+const String TEST_INVOCATION0 = r"""
main() {
var o = null;
o();
}
""";
-const String TEST_INVOCATION1 = @"""
+const String TEST_INVOCATION1 = r"""
main() {
var o = null;
o(1);
}
""";
-const String TEST_INVOCATION2 = @"""
+const String TEST_INVOCATION2 = r"""
main() {
var o = null;
o(1, 2);
}
""";
-const String TEST_BAILOUT = @"""
+const String TEST_BAILOUT = r"""
class A {
var x;
foo() {
@@ -41,18 +41,18 @@ main() { new A().foo(); }
closureInvocation() {
String generated = compile(TEST_INVOCATION0);
- Expect.isTrue(generated.contains(@".call$0()"));
+ Expect.isTrue(generated.contains(r".call$0()"));
generated = compile(TEST_INVOCATION1);
- Expect.isTrue(generated.contains(@".call$1(1)"));
+ Expect.isTrue(generated.contains(r".call$1(1)"));
generated = compile(TEST_INVOCATION2);
- Expect.isTrue(generated.contains(@".call$2(1, 2)"));
+ Expect.isTrue(generated.contains(r".call$2(1, 2)"));
}
// Make sure that the bailout version does not introduce a second version of
// the closure.
closureBailout() {
String generated = compileAll(TEST_BAILOUT);
- RegExp regexp = const RegExp(@'call\$0: function');
+ RegExp regexp = const RegExp(r'call\$0: function');
Iterator<Match> matches = regexp.allMatches(generated).iterator();
checkNumberOfMatches(matches, 1);
}
« no previous file with comments | « tests/compiler/dart2js/class_order_test.dart ('k') | tests/compiler/dart2js/code_motion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698