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

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

Issue 328803002: Handle metadata in the magic [^] property of class descriptions correctly. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.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/metadata_class_mirror_test.dart
diff --git a/tests/lib/mirrors/runtime_type_test.dart b/tests/lib/mirrors/metadata_class_mirror_test.dart
similarity index 52%
copy from tests/lib/mirrors/runtime_type_test.dart
copy to tests/lib/mirrors/metadata_class_mirror_test.dart
index fd446d32b0b8db6da48163ebc0020d62f4c831db..82aeee76af68de852e0403d6ce2edbaa4b442fc8 100644
--- a/tests/lib/mirrors/runtime_type_test.dart
+++ b/tests/lib/mirrors/metadata_class_mirror_test.dart
@@ -2,19 +2,19 @@
// 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.
-library test.runtime_type_test;
+// Regression test for http://dartbug.com/19173
-@MirrorsUsed(targets: 'test.runtime_type_test', override: '*')
import 'dart:mirrors';
-import 'package:expect/expect.dart';
-
-class A {}
-
-class B {
- get runtimeType => A;
+class A {
+ const A();
}
+@deprecated
+const A anA = const A();
+
main() {
- Expect.equals(reflect(new B()).type, reflectClass(B));
+ ClassMirror typeMirror = reflectType(A);
+ var decs = typeMirror.declarations;
+ print(decs.length);
}
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/js_emitter/reflection_data_parser.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698