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

Unified Diff: frog/tests/leg/src/ClosureCodegenTest.dart

Issue 9193016: Add the arity to calls, and support noSuchMethodException. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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: frog/tests/leg/src/ClosureCodegenTest.dart
===================================================================
--- frog/tests/leg/src/ClosureCodegenTest.dart (revision 3496)
+++ frog/tests/leg/src/ClosureCodegenTest.dart (working copy)
@@ -29,11 +29,11 @@
closureInvocation() {
String generated = compile(TEST_INVOCATION0);
- Expect.isTrue(generated.contains(".\$call()"));
+ Expect.isTrue(generated.contains(".\$call\$0()"));
generated = compile(TEST_INVOCATION1);
- Expect.isTrue(generated.contains(".\$call(1)"));
+ Expect.isTrue(generated.contains(".\$call\$1(1)"));
generated = compile(TEST_INVOCATION2);
- Expect.isTrue(generated.contains(".\$call(1, 2)"));
+ Expect.isTrue(generated.contains(".\$call\$2(1, 2)"));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698