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

Unified Diff: tests/language/call_function_apply_test.dart

Issue 1245733002: dart2js: Add failing test for Function.apply on normal class with `call`. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/call_function_apply_test.dart
diff --git a/tests/language/issue13179_test.dart b/tests/language/call_function_apply_test.dart
similarity index 69%
copy from tests/language/issue13179_test.dart
copy to tests/language/call_function_apply_test.dart
index 0439ceab895f5925234763b90cb323007bc19b14..935cfaf832aff599478847534822d651a4ddcd51 100644
--- a/tests/language/issue13179_test.dart
+++ b/tests/language/call_function_apply_test.dart
@@ -4,16 +4,12 @@
import "package:expect/expect.dart";
-int count = 0;
-
-void f([void f([x]) = f]) {
- count++;
- if (f != null) {
- f(null);
+class A {
+ call({a: 42}) {
+ return 499 + a;
}
}
main() {
- f();
- Expect.equals(2, count);
+ Expect.equals(497, Function.apply(new A(), [], {#a: -2}));
}
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698