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

Unified Diff: tests/compiler/dart2js/closure_codegen_test.dart

Issue 10834270: Implement call operator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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/closure_codegen_test.dart
diff --git a/tests/compiler/dart2js/closure_codegen_test.dart b/tests/compiler/dart2js/closure_codegen_test.dart
index e90aa8110cf59e376a8e11c7a6c42e0d0e275412..e3c126397d391610c62e55e2ec9c3c764b87c7ca 100644
--- a/tests/compiler/dart2js/closure_codegen_test.dart
+++ b/tests/compiler/dart2js/closure_codegen_test.dart
@@ -41,18 +41,18 @@ main() { new A().foo(); }
closureInvocation() {
String generated = compile(TEST_INVOCATION0);
- Expect.isTrue(generated.contains(".\$call\$0()"));
+ Expect.isTrue(generated.contains(@".call$0()"));
generated = compile(TEST_INVOCATION1);
- Expect.isTrue(generated.contains(@".$call$1(1)"));
+ Expect.isTrue(generated.contains(@".call$1(1)"));
generated = compile(TEST_INVOCATION2);
- Expect.isTrue(generated.contains(@".$call$2(1, 2)"));
+ Expect.isTrue(generated.contains(@".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(@'call\$0: function');
Iterator<Match> matches = regexp.allMatches(generated).iterator();
checkNumberOfMatches(matches, 1);
}

Powered by Google App Engine
This is Rietveld 408576698