Index: tests/lib/mirrors/closures_test.dart |
diff --git a/tests/lib/mirrors/closures_test.dart b/tests/lib/mirrors/closures_test.dart |
index 5f861c6cc1cb276f5ea4e6e7bddfe7ec2f65b4a8..35e81f9805821b2bd2becc4aa986948e3379bfc0 100644 |
--- a/tests/lib/mirrors/closures_test.dart |
+++ b/tests/lib/mirrors/closures_test.dart |
@@ -8,20 +8,18 @@ import 'stringify.dart'; |
testIntercepted() { |
var instance = []; |
- var methodMirror = reflect(instance.toString); |
- String rest = ' in s(List)'; |
- rest = ''; /// 01: ok |
- expect('Method(s(toString)$rest)', methodMirror.function); |
- Expect.equals('[]', methodMirror.apply([]).reflectee); |
+ var closureMirror = reflect(instance.toString); |
+ var methodMirror = closureMirror.function; |
+ Expect.equals(#toString, methodMirror.simpleName); |
+ Expect.equals('[]', closureMirror.apply([]).reflectee); |
} |
testNonIntercepted() { |
var closure = new Map().containsKey; |
- var mirror = reflect(closure); |
- String rest = ' in s(_HashMap)'; // Might become Map instead. |
- rest = ''; /// 01: ok |
- expect('Method(s(containsKey)$rest)', mirror.function); |
- Expect.isFalse(mirror.apply([7]).reflectee); |
+ var closureMirror = reflect(closure); |
+ var methodMirror = closureMirror.function; |
+ Expect.equals(#containsKey, methodMirror.simpleName); |
+ Expect.isFalse(closureMirror.apply([7]).reflectee); |
} |
main() { |