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

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

Issue 217963002: Allow getField of methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address typo-comment. Created 6 years, 9 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/lib/mirrors/invoke_closurization2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 10391611b4ce761d57c6b33af29ca6ff8bb5338e..0b25ff0193936647f70fcc80e4f9aa88fd2ae52b 100644
--- a/tests/lib/mirrors/invoke_closurization_test.dart
+++ b/tests/lib/mirrors/invoke_closurization_test.dart
@@ -7,7 +7,6 @@ library test.invoke_closurization_test;
import 'dart:mirrors';
import 'package:expect/expect.dart';
-import 'invoke_test.dart';
class C {
instanceMethod(x, y, z) => '$x+$y+$z';
@@ -25,14 +24,14 @@ testSync() {
Expect.equals("A+B+C", result.reflectee('A', 'B', 'C'));
ClassMirror cm = reflectClass(C);
- result = cm.getField(#staticFunction);
- Expect.isTrue(result.reflectee is Function, "Should be closure");
- Expect.equals("A-B-C", result.reflectee('A', 'B', '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
LibraryMirror lm = cm.owner;
- result = lm.getField(#libraryFunction);
- Expect.isTrue(result.reflectee is Function, "Should be closure");
- Expect.equals("A:B:C", result.reflectee('A', 'B', 'C'));
+ 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
}
main() {
« no previous file with comments | « tests/lib/mirrors/invoke_closurization2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698