Index: test/codegen/lib/mirrors/method_mirror_name_test.dart |
diff --git a/test/codegen/language/abstract_object_method_test.dart b/test/codegen/lib/mirrors/method_mirror_name_test.dart |
similarity index 50% |
copy from test/codegen/language/abstract_object_method_test.dart |
copy to test/codegen/lib/mirrors/method_mirror_name_test.dart |
index f88094b46af01c6ba728b69102fc0e3779d857e3..a921d333864fb2c4210fdb135dfcf19af3029072 100644 |
--- a/test/codegen/language/abstract_object_method_test.dart |
+++ b/test/codegen/lib/mirrors/method_mirror_name_test.dart |
@@ -2,25 +2,16 @@ |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
-import "package:expect/expect.dart"; |
- |
-class A { |
- noSuchMethod(_) { |
- Expect.fail('Should not reach here'); |
- } |
-} |
+import "dart:mirrors"; |
-class B extends A { |
- operator ==(other); |
-} |
- |
-class C extends B { |
-} |
+import "package:expect/expect.dart"; |
+import "stringify.dart"; |
-var a = [new C()]; |
+doNothing42() {} |
main() { |
- C c = a[0]; |
- a.add(c); |
- Expect.isTrue(c == a[1]); |
+ // Regression test for http://www.dartbug.com/6335 |
+ var closureMirror = reflect(doNothing42); |
+ Expect.equals(stringifySymbol(closureMirror.function.simpleName), |
+ "s(doNothing42)"); |
} |