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

Unified Diff: tests/lib/mirrors/invoke_closurization_test.dart

Issue 195793013: Add support for closure calls through getters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix status file and remove bad type.wq Created 6 years, 8 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/lib/mirrors/invoke_closurization_test.dart
diff --git a/tests/lib/mirrors/invoke_closurization_test.dart b/tests/lib/mirrors/invoke_closurization_test.dart
index 0b25ff0193936647f70fcc80e4f9aa88fd2ae52b..4afaabee6125f1e6a3f4139862b25b9e9ee3bf38 100644
--- a/tests/lib/mirrors/invoke_closurization_test.dart
+++ b/tests/lib/mirrors/invoke_closurization_test.dart
@@ -24,14 +24,14 @@ testSync() {
Expect.equals("A+B+C", result.reflectee('A', 'B', 'C'));
ClassMirror cm = reflectClass(C);
- result = cm.getField(#staticFunction); /// static: ok
- Expect.isTrue(result.reflectee is Function, "Should be closure"); /// static: continued
- Expect.equals("A-B-C", result.reflectee('A', 'B', 'C')); /// static: continued
+ result = cm.getField(#staticFunction);
+ Expect.isTrue(result.reflectee is Function, "Should be closure");
+ Expect.equals("A-B-C", result.reflectee('A', 'B', 'C'));
LibraryMirror lm = cm.owner;
- result = lm.getField(#libraryFunction); /// static: continued
- Expect.isTrue(result.reflectee is Function, "Should be closure"); /// static: continued
- Expect.equals("A:B:C", result.reflectee('A', 'B', 'C')); /// static: continued
+ result = lm.getField(#libraryFunction);
+ Expect.isTrue(result.reflectee is Function, "Should be closure");
+ Expect.equals("A:B:C", result.reflectee('A', 'B', 'C'));
}
main() {

Powered by Google App Engine
This is Rietveld 408576698